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

Role inconsistencies #142

Open
Rutherther opened this issue Jul 5, 2023 · 1 comment
Open

Role inconsistencies #142

Rutherther opened this issue Jul 5, 2023 · 1 comment

Comments

@Rutherther
Copy link
Member

After student enrollment the relevant information takes time to propagate. That may not pose a problem, but some issues could be solved by making roles "dependant".

For example, if person gets programme role, it's certain that he is from FEE. But the user may not get FEE role as FEE role is obtained from usermap. programme role is "dependant" on FEE role. On the other hand, FEE role excludes the possibility of CTU impostor role.

If role X depends on Y, and the user has role X, add role Y.
If roles X and Y do not go together, and the user has both roles, remove the one with lower priority, or in case the priority is the same, choose the last one.

Roles will get their priority during the auth process. Dependent roles will get the same priority as the role they were derived from.

@Rutherther
Copy link
Member Author

This problem may arise only few times a year, and handling adds potential for more errors, and would take time that may not be worth it.

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

No branches or pull requests

1 participant