[Permissions] Admin global role can't manage qualification awarding bodies
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- django, python
- Domain
- authorization
Research direction
Find the GlobalRoles.PERMISSIONS definition and compare the ADMIN and DELIVERY_MGR entries with the four permissions required by the awarding body views. Read the permission sync task to confirm how these entries reach existing groups. Done means the required permissions are included for the intended roles and the sync grants them.
Written by the indexing model from the issue text.
Description
Summary
GlobalRoles.PERMISSIONS for ADMIN grants every *_qualification permission, but no *_awardingbody permission. QualificationAwardingBodyCreateView and its sibling views require jobtracker.add_awardingbody, and the matching change, view and delete permissions. So a non-superuser admin gets a 403 at /ops/qualifications/awardingbody/create/, and can't set up qualifications at all, because each one needs an awarding body.
Workaround, and why it's fragile
Adding the four permissions to the Global: Admin group by hand doesn't last. The daily task_sync_global_permissions cron resets every global group to GlobalRoles.PERMISSIONS, so the change is removed at 07:30 the next day. The only lasting downstream workaround is to grant the permissions to individual users.
Suggested fix
Add the four jobtracker.*_awardingbody permissions to the ADMIN entry in GlobalRoles.PERMISSIONS, and probably to DELIVERY_MGR, which already manages qualifications. Existing installs will pick them up from the next global permission sync.
- Dominant language
- HTML
- Stars
- 6
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from brainthee/CHAOTICA
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[Minor UI Bug] Client page shows account manager photos as squares overlapping the round borderOpen
Difficulty 1/5 Under an hour Newbie friendliness 94/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
All issues in brainthee/CHAOTICA
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
btclib-org/btclib-wallet#801 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LightningEg/Lightning#588 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
ssh
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
contour-terminal/contour#2306 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day