windranger-io / windranger-treasury

Apache License 2.0
16 stars 7 forks source link

[Bug] Check the last SuperUser is not revoked #333

Closed jio-gl closed 2 years ago

jio-gl commented 2 years ago

Bug Description

RoleAccessControl: Can a SuperUser revoke itself and left AccessControl with No SuperUsers?

Check that when a SuperUser is revoked, is not the last one, then revert if is the last one.

Current Behaviour

Now it can be revoked.

Expected Behaviour

Revert on last SuperUser.