can('manageShares', $inviteable); } return $user->can('manageMembers', $inviteable); } /** * The invitation may be revoked by whoever sent it or by an admin of the * thing it invites into. */ public function delete(User $user, Invitation $invitation): bool { return $user->id === $invitation->inviter_id || $user->can('delete', $invitation->inviteable); } }