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

EnableAllPrivileges can be optimized #11

Open
antonioCoco opened this issue Dec 2, 2023 · 0 comments
Open

EnableAllPrivileges can be optimized #11

antonioCoco opened this issue Dec 2, 2023 · 0 comments

Comments

@antonioCoco
Copy link
Owner

The current implementation of EnableAllPrivileges() enable a list of hardcoded privileges by their names.

The code should be refactored to dynamically retrieves the privileges from the token leveraging the function GetTokenPrivileges() and enables only the disabled ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant