mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix some forgotten logic checks temporarily
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user