/** * Returns if the user has the permission for all items. * * @return bool */ public function hasAll() { return $this->user->isAdmin() || $this->perms == self::ALL; }