]> BookStack Code Mirror - bookstack/blobdiff - app/Users/Models/User.php
respective book and chapter structure added.
[bookstack] / app / Users / Models / User.php
index 5bd308ae87707cd425f6ba21b42748cc5a4392b7..3797e7cb0279d27cd88902443d9aafd393857178 100644 (file)
@@ -160,10 +160,6 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
      */
     public function can(string $permissionName): bool
     {
-        if ($this->email === 'guest') {
-            return false;
-        }
-
         return $this->permissions()->contains($permissionName);
     }