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

2 level admins #130

Open
Vishal1541 opened this issue Jul 16, 2019 · 7 comments
Open

2 level admins #130

Vishal1541 opened this issue Jul 16, 2019 · 7 comments
Labels
admin For admins panel enhancement New feature or request

Comments

@Vishal1541
Copy link
Member

Currently, there is only one level of the admin who has all the privileges to add, remove other admins, problems and contests. To come up with a better approach, admins should have 2 levels:

  • Level1: is the supreme admin who has all the privileges to add, remove other users as admins, can see, modify, delete every problem and the contests.

  • Level2: is the problem setter who can just see, add, remove, modify only his problems and contests and cannot even see other admins.

@Vishal1541 Vishal1541 added enhancement New feature or request admin For admins panel labels Jul 16, 2019
@dheeraj135
Copy link
Collaborator

@kpbot claim

@kpbot
Copy link
Member

kpbot commented Oct 7, 2019

Hello @dheeraj135!

You have attempted to claim an issue without the labels "help wanted", "good first issue". It seems like you are new to KamandPrompt, so we suggest working on an issue with the help wanted or good first issue label first.

To claim this issue anyway, comment on this issue again with the command @kpbot claim --force.

@dheeraj135
Copy link
Collaborator

@kpbot claim --force

@kpbot
Copy link
Member

kpbot commented Oct 7, 2019

Welcome to KamandPrompt, @dheeraj135! We just sent you an invite to collaborate on this repository at https://github.com/KamandPrompt/CodeManiacs/invitations. Please accept this invite in order to claim this issue and begin a fun, rewarding experience contributing to KamandPrompt!

Here's some tips to get you off to a good start:

See you on the other side (that is, the pull request side)!

@dheeraj135
Copy link
Collaborator

Hi,
In the problem setter field, we are storing the name of the user. Now, the username is not guaranteed to be unique. I suggest we should store username in the problem setter field.

Benefits:

  • We can easily filter questions related to a particular setter. This will help us in implementing required operations for the problem setter.
  • Minimal code change. At max 4-5 lines needs to be changed.

Is there any particular reason to use user instead of username?

@Vishal1541
Copy link
Member Author

@dheeraj135 Yes, this was supposed to be done and with the previous contributors we had discussed about it but due to some reason there was no progress. You can take up this one 👍

@kpbot
Copy link
Member

kpbot commented Oct 13, 2019

Hello @dheeraj135, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 7 days.

You can reclaim this issue or claim any other issue by commenting @kpbot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin For admins panel enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants