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
|
@ -79,7 +79,7 @@ class UserTransformer extends TransformerAbstract
|
|||
*/
|
||||
public function includeServers(User $user)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('user-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ class UserTransformer extends TransformerAbstract
|
|||
*/
|
||||
public function includeAccess(User $user)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('user-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue