value; } public function authorize(): bool { if (! parent::authorize()) { return false; } if ($this->requesterHasFullAccess()) { return true; } $exceeding = array_diff($this->subuser()->permissions, $this->requesterPermissions(), [Permissions::WebsocketConnect->value]); throw_if(count($exceeding) > 0, HttpForbiddenException::class, __('exceptions.subusers.remove_exceeding_permissions')); return true; } }