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

Update access checks #25

Open
wants to merge 9 commits into
base: release_8
Choose a base branch
from
Open

Update access checks #25

wants to merge 9 commits into from

Conversation

ingoj
Copy link
Contributor

@ingoj ingoj commented Mar 26, 2024

the plugin checked, if the user holds the global admin role. To enable persons who have proper authority, but not the global admin role to configure the plungin settings, I introduced a new function "grant access(): bool" to the plugin class. The checks fpr the pluginGUI, UDFChecks, UserSettings and UserSearch are updated to use the new function.

The Function itself checks if the user is allowed to edit roles in ILIAS user adminstration, since most functions of the plugin (de-)assign roles to users. Probably this could be extended to check orgUnit assignment capabilities, too.
if other capabilities should be honoured, this can be achieved in one place now.

I did not touch the REST API related classes since I am not sure which check should be placed here.

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.

1 participant