mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
Corrected permissions to go with the more logical thought process
This commit is contained in:
@@ -81,7 +81,7 @@ class OptionTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeService(ServiceOption $option)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('option-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('service-view')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ class OptionTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includePacks(ServiceOption $option)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('option-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('pack-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ class OptionTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeServers(ServiceOption $option)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('option-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user