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

fix: Stops local sys admin from creating national level staff #8112

Open
wants to merge 10 commits into
base: release-v1.6.1
Choose a base branch
from

Conversation

Siyasanga
Copy link
Collaborator

Stop sys admins from de-activating themselves and stop local sys admins. from creating national level users

Also stops sys admins from being able to delete themselves in the UI:

Screenshot 2024-11-15 at 08 56 27

A National Sys Admin will see the correct roles available to them:

Screenshot 2024-11-15 at 08 45 49 Screenshot 2024-11-15 at 08 45 26

A local system admin will not see national level roles available to them:
Screenshot 2024-11-15 at 08 44 58

Screenshot 2024-11-15 at 08 44 32

It is better to have in the gateway since most of access mgnt is handled there already

#7698
The way we were building the criteria object was buggy especially for when we are filtering based on user roles

#7698
This is avoid users with lower roles creating or updating other users with higher roles

#7698
@Siyasanga Siyasanga self-assigned this Nov 29, 2024

This comment has been minimized.

@Siyasanga Siyasanga added 🚀 Ready to deploy Deployment automation should pick this PR up and start auto-deploying it 💅 Waiting For Review 🏥 Failing Tests labels Nov 29, 2024
The sys admin will no longer see the feature for their own accounts, it will only available on other users, this should stop them from eccidentally deactivating their accounts.

#7691
@Siyasanga Siyasanga added this to the v1.6.1 milestone Dec 2, 2024
@euanmillar euanmillar added 🚀 Ready to deploy Deployment automation should pick this PR up and start auto-deploying it ✋ On Hold and removed 🚀 Ready to deploy Deployment automation should pick this PR up and start auto-deploying it labels Dec 2, 2024
This was referenced Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Local system admin should not be able to create National System admin and National registrar
2 participants