allows($user); } public function view(User $user): bool { return $this->allows($user); } public function create(User $user): bool { return $this->allows($user); } public function update(User $user): bool { return $this->allows($user); } public function delete(User $user): bool { return $this->allows($user); } public function deleteAny(User $user): bool { return $this->allows($user); } public function reorder(User $user): bool { return $this->allows($user); } protected function allows(User $user): bool { return (bool) $user->currentRole()?->grants($this->permission()); } }