~homeworkprod/byceps

ref: 533662eefb314d54b168e5a46bc07c88b5f88be4 byceps/byceps/blueprints/admin/tourney/tourney/views.py -rw-r--r-- 4.8 KiB
533662ee — Jochen Kupperschmidt 4 months ago
Use Flask v2.0's `delete`/`get`/`patch`/`post` route shortcuts
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
f0c76547 — Jochen Kupperschmidt 8 months ago
Add tourney admin blueprint

SQL:

    INSERT INTO authz_permissions VALUES ('tourney.administrate', 'Turniere verwalten');
    INSERT INTO authz_permissions VALUES ('tourney.view', 'Turniere anzeigen');

    INSERT INTO authz_roles VALUES ('tourney_admin', 'Turniere verwalten');

    INSERT INTO authz_role_permissions VALUES ('tourney_admin', 'tourney.administrate');
    INSERT INTO authz_role_permissions VALUES ('tourney_admin', 'tourney.view');