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

roles and permissions #3

Open
kerolloz opened this issue May 15, 2019 · 1 comment
Open

roles and permissions #3

kerolloz opened this issue May 15, 2019 · 1 comment
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@kerolloz
Copy link
Member

kerolloz commented May 15, 2019

when a problem_setter wants to delete or update a problem, we must check if he is the same setter of the problem so a problem_setter can't delete or update a problem created by another problem_setter. but the question is what about the admin? should he be able to update or delete any problem whether he is the setter or not? this also leads to another question... if an admin creates a problem (or a contest) should any other admin be able to update or delete it!
@amrsalama please check this.

@kerolloz kerolloz added help wanted Extra attention is needed question Further information is requested labels May 15, 2019
@kerolloz
Copy link
Member Author

kerolloz commented May 15, 2019

I suggest one of the 2 following approaches:

  • an admin can update or delete any problem (or contest) whether it's made by another admin or a problem_setter.
  • the setter(an admin or a problem setter) of the problem(or contest) is the only one allowed to update or delete it.

NOTICE: a problem_setter can only create problems. a problem_setter is NOT allowed to create contests -- creating contests is only allowed for admins.

so what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant