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

Do not allow users to login if they don't have the necessary permissions #243

Open
kennsippell opened this issue Jan 22, 2025 · 2 comments · May be fixed by #250
Open

Do not allow users to login if they don't have the necessary permissions #243

kennsippell opened this issue Jan 22, 2025 · 2 comments · May be fixed by #250
Assignees

Comments

@kennsippell
Copy link
Member

Users need 5-6 permissions to use the user management tool. If they don't have all the required permissions, they sould not be able to login.

@Benmuiruri
Copy link

Hi @freddieptf could you confirm whether it would be sufficient to check is user is an admin in fetchCreationDetails

if (!isAdmin) {
      throw Error(`User ${username} is not an Admin. Admin access required to use this application`);
    }

I'm wondering is there any functionality in the UMT that a regular user can use ? Or is it the case that all actions require admin access ?

@Benmuiruri Benmuiruri self-assigned this Feb 6, 2025
@freddieptf
Copy link
Collaborator

User managers aren't admins, they have a user manager role attached to them which has the permissions required to create users/places. What we need to check is that the user logging in has these permissions. You can have a look at the echis config to see how the role is configured.

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 a pull request may close this issue.

3 participants