class SelfDemotionGuard

Methods

void
handle(Saving $event)

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

Details

void handle(Saving $event)

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

Parameters

Saving $event

Return Value

void

Exceptions

PermissionDeniedException