cms-dev / cms-dev/cms

Add ability to assign only certain contests to an admin user

Open
#651 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature_request
Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

Currently, an admin user (created with cmsAddAdmin) manages all contests. I would like to be able to assign an admin user to only one contest (or to more than one contests).

Use case: with the multi-contest feature, it happens that some users wants to organize and manage (as admins) a contest, but they may also want to participate (as contestants) to a different contest.

By the way, why don't we ditch the Admin entity and just add a Participation.is_admin field?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how cmsAddAdmin creates and uses the Admin entity, then inspect Participation and the multi-contest permission flow. Define how an administrator is associated with one or more contests while retaining contestant access elsewhere. Done means permissions are limited to assigned contests and the proposed admin/participation model is covered for both single- and multi-contest cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authorization, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.