isMember; } /** * Members without capability should receive 403 (forbidden). */ public function shouldDenyAsForbidden(): bool { return $this->isMember && ! $this->hasCapability; } /** * User is authorized to perform the action. */ public function isAuthorized(): bool { return $this->isMember && $this->hasCapability; } }