mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-21 01:57:41 +02:00
feat: add dedicated clear_plate permission + full-page group editor (#446)
Add a new `printers:clear_plate` permission so admins can grant plate-clearing ability without full `printers:control` access. Existing groups with `printers:control` automatically receive the new permission on startup via migration. Replace the cramped permission modal in Settings with a dedicated full-page group editor (`/groups/new`, `/groups/:id/edit`) featuring search filtering, select all/clear all, category-level toggles, and a responsive 2-column permission grid. Remove dead GroupsPage code that was never routed. - Backend: new Permission enum, category, defaults, endpoint guard, migration - Frontend: GroupEditPage, updated routes, removed modal from SettingsPage - Tests: 10 backend + 10 frontend tests for new permission and editor - Docs: updated wiki (auth, printer-control, API), website, changelog - i18n: added group editor keys to all 6 locale files (en/de/ja/fr/pt-BR/it)
This commit is contained in:
@@ -1970,7 +1970,7 @@ export interface ExternalLinkUpdate {
|
||||
|
||||
// Permission type - all available permissions
|
||||
export type Permission =
|
||||
| 'printers:read' | 'printers:create' | 'printers:update' | 'printers:delete' | 'printers:control' | 'printers:files' | 'printers:ams_rfid'
|
||||
| 'printers:read' | 'printers:create' | 'printers:update' | 'printers:delete' | 'printers:control' | 'printers:files' | 'printers:ams_rfid' | 'printers:clear_plate'
|
||||
| 'archives:read' | 'archives:create'
|
||||
| 'archives:update_own' | 'archives:update_all' | 'archives:delete_own' | 'archives:delete_all'
|
||||
| 'archives:reprint_own' | 'archives:reprint_all'
|
||||
|
||||
Reference in New Issue
Block a user