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
|
@ -80,7 +80,7 @@ class ServiceTransformer extends TransformerAbstract
|
|||
*/
|
||||
public function includeOptions(Service $service)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('service-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('option-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ class ServiceTransformer extends TransformerAbstract
|
|||
*/
|
||||
public function includeServers(Service $service)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('service-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ class ServiceTransformer extends TransformerAbstract
|
|||
*/
|
||||
public function includePacks(Service $service)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('service-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('pack-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue