Corrected permissions to go with the more logical thought process
This commit is contained in:
parent
820d2bf172
commit
a2a4ab05c8
9 changed files with 20 additions and 20 deletions
|
@ -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 a new issue