Fix some forgotten logic checks temporarily

This commit is contained in:
Dane Everitt 2017-09-10 23:57:18 -05:00
parent 97d87ff57c
commit 131159c246
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 4 additions and 4 deletions

View file

@ -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;
}