class SelfDemotionGuard

Methods

handle(Saving $event)

<p>Prevent an admin from removing their admin permission via the API.</p>

Details

handle(Saving $event)

<p>Prevent an admin from removing their admin permission via the API.</p>

Parameters

Saving $event

Exceptions

PermissionDeniedException