As a site admin, I want to set which pages a super group can edit, so that I can restrict permissions to those necessary

Open
#236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
authorization

Research direction

Start by locating the /pages permission checks and the code that reads PAGE_EDITOR_GROUPS; then read the site settings and super group management entry points. Trace how page editor permissions are stored and applied before estimating the change. Done means site admins can assign active super groups to specific pages and review all configured page editors; removing the environment variable is optional.

Written by the indexing model from the issue text.

Description

suggestion
🚨 Problem

Currently all pages under /pages are editable by all site admins and those configured as page editors. This leads to more broad access than what is necessary. For instance snIT mostly needs to be able to edit the page for their meeting minutes but that would also give them permission to edit pages like SAMO. Another issue is that this is configured through environment variables meaning that only digIT is able to update the list in the first place, not other site admins.

📝 Description

Instead, site admins should be able to add a few pages that members of an active super group can edit. It would be nice to get an overview of all pages' permissions so maybe a new tab in the site settings would be a good place for this? Would also be good for having an overview of which pages exist in general and may have action buttons for editing or deleting.

✅ Acceptance Criteria
  • It is possible for site admins to configure an active super group as a page editor of a specific page
  • There is an overview of all configured page editors so outdated permissions can be spotted easily
  • (Optional) Remove the PAGE_EDITOR_GROUPS environment variable entirely
💡 Additional context

No response

Dominant language
TypeScript
Stars
6
Forks
5
Avg merge
3d 17h
Merged PRs (30d)
3

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No 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.

More from cthit/chalmers.it

All issues in cthit/chalmers.it

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.