Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Acl): add acl_add_super_admin #98

Merged
merged 2 commits into from
Mar 15, 2023
Merged

feat(Acl): add acl_add_super_admin #98

merged 2 commits into from
Mar 15, 2023

Conversation

mooori
Copy link
Contributor

@mooori mooori commented Mar 15, 2023

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.

@mooori mooori marked this pull request as ready for review March 15, 2023 14:43
@mooori mooori requested a review from birchmd March 15, 2023 14:43
@mooori mooori merged commit 920ec83 into master Mar 15, 2023
@mooori mooori deleted the acl-add-sa branch March 15, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants