Fix some forgotten logic checks temporarily
This commit is contained in:
parent
97d87ff57c
commit
131159c246
4 changed files with 4 additions and 4 deletions
|
@ -60,7 +60,7 @@ class ServerPolicy
|
|||
*/
|
||||
public function before(User $user, $ability, Server $server)
|
||||
{
|
||||
if ($user->isRootAdmin() || $server->owner_id === $user->id) {
|
||||
if ($user->root_admin || $server->owner_id === $user->id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue