Skip to content

Conversation

@wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Apr 21, 2025

Overview

  • Add "Style Editor" groups.
  • Add "Snippet User" group.

Status

Warning

Blocked by #932. We must not add new migrations to add groups (causes bug). #932 gives us a new way.

Related

Changes

  • added groups:
    • "Style Editor (Advanced)"
    • "Style Editor (Basic)"
    • "Snippet User"
  • added supporting utility functions

Testing

  1. Set up a fresh CMS (no previous volumes):
    make clean
    make setup
  2. In the output, after migrations, see log statement:

    Finished creating CMS groups

  3. Open http://localhost:8000/admin/auth/group/.
  4. Log in.
  5. Verify groups exist.
  6. Open "Style Editor" and "Snippet User" groups.
  7. Verify permissions exist.

UI

Didn't work when I tested on fresh CMS. But seems simpler than before. Every time I tested previosu commit with AI debugging, we agreed "create_permissions" was a bad thing to do. It usurps Django's order of oeprations.
@wesleyboar wesleyboar changed the base branch from main to fix/gh-931-cms-migrate-fail April 21, 2025 21:50
@wesleyboar wesleyboar changed the title feat: style editor feat: style editor & snippet user Apr 22, 2025
Base automatically changed from fix/gh-931-cms-migrate-fail to main April 25, 2025 17:22
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.

2 participants