Near-One / near-plugins

Implementation of common patterns used for NEAR smart contracts.
Creative Commons Zero v1.0 Universal
27 stars 12 forks source link

feat(Acl): add `acl_add_super_admin` #98

Closed mooori closed 1 year ago

mooori commented 1 year ago

Adds the function to the AccessControllable trait and provides a default implementation.

Previously super-admins could be added only via acl_init_super_admin and add_super_admin_unchecked, which is an internal function of the default implementation.

acl_add_super_admin allows adding multiple super-admins without having to use internal functions.