mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 14:23:44 +02:00
Corrected permissions to go with the more logical thought process
This commit is contained in:
@@ -83,7 +83,7 @@ class PackTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeOption(Pack $pack)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('pack-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('option-view')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ class PackTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeServers(Pack $pack)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('pack-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user