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

Add "voter" role to /admin #87

Merged
merged 6 commits into from
Sep 19, 2024
Merged

Add "voter" role to /admin #87

merged 6 commits into from
Sep 19, 2024

Conversation

Pabl0cks
Copy link
Member

@Pabl0cks Pabl0cks commented Sep 17, 2024

Adding a new "voter" role, to act as "Guest voter", so we can add anyone to vote on Hackathon submissions, but they can't see other voter results, so they can't check the winners either.

  • Added new "voter" role checks in database (needs to be able to vote, to comment and to mark as eligible or not eligible)
  • Remove results from "Not Voted" and "Voted" tabs
  • Add "admin" check for "All Submissions" tab
  • Adds new dummy voter to seed script

Admins can choose to know or not know the current avg. score, they can blind vote from "Not Voted" or they can choose to vote from All Submissions to have extra info.

Closes #81

Copy link

vercel bot commented Sep 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
extensions-hackathon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 6:29pm

Copy link
Member

@damianmarti damianmarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Pabl0cks !!

Everything looks good and works great!

I added a voter flag to the session user so these checks are simpler and clear!

@Pabl0cks Pabl0cks merged commit 3943b3f into main Sep 19, 2024
3 checks passed
@Pabl0cks Pabl0cks deleted the voter-role branch September 19, 2024 20:51
@Pabl0cks
Copy link
Member Author

TYSM Damu! ♥

Merging this 🙌

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 this pull request may close these issues.

Create a new "voter" role
2 participants