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

Provide a helper that checks if the user is admin for an action #71

Closed
openlowcode opened this issue Apr 3, 2020 · 2 comments
Closed

Comments

@openlowcode
Copy link
Owner

openlowcode commented Apr 3, 2020

An user is considered an admin for an action if he is either an admin of the module the action belongs to, or an admin of the site ( Sovereign ). A new method in the SecurityBuffer should provide a confirmation if the user is admin or not for the action.

This can be used for differentiated business logic where an admin user is not subject to controls.

Enabler for #70

@openlowcode
Copy link
Owner Author

Finally developed it as part of OLcServer (OLcServer.isCurrentUserAdmin(ActionExecution action)

@openlowcode
Copy link
Owner Author

Also, I did another correction, entry is the SModule itself, not the action, it allows to get the module from various contexts (DataObject, Action...)

openlowcode pushed a commit that referenced this issue Apr 3, 2020
@openlowcode openlowcode added this to the Solved v1.5.0 milestone Apr 6, 2020
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