~homeworkprod/byceps

ref: 342e5296ae417372e544ce931b442e98301c17a1 byceps/byceps/blueprints/admin/tourney/category/views.py -rw-r--r-- 5.1 KiB
c7f2b8cc — Jochen Kupperschmidt 7 months ago
Format more code according to Black
d1dff0da — Jochen Kupperschmidt 8 months ago
Translate flash messages to English
e6f5deba — Jochen Kupperschmidt 8 months ago
Wrap flash message texts in `gettext` calls for translation
1b14010f — Jochen Kupperschmidt 8 months ago
Introduce `byceps.util.authorization.register_permission_enum` to be used in blueprint views
386eb13e — Jochen Kupperschmidt 8 months ago
Move permission registry module out of blueprints package
96d3e6bd — Jochen Kupperschmidt 8 months ago
Tweak tourney category admin URLs
7d81a758 — Jochen Kupperschmidt 8 months ago
Merge mutating tourney category administration permissions into one

SQL:

    DELETE FROM authz_role_permissions WHERE role_id = 'tourney_category_admin' AND permission_id IN ('tourney_category.create', 'tourney_category.update');
    DELETE FROM authz_permissions WHERE id IN ('tourney_category.create', 'tourney_category.update');

    INSERT INTO authz_permissions VALUES ('tourney_category.administrate', 'Turnierkategorien verwalten');
    INSERT INTO authz_role_permissions VALUES ('tourney_category_admin', 'tourney_category.administrate');
458c1883 — Jochen Kupperschmidt 8 months ago
Extract tourney category admin blueprint