Zugriffsverwaltung wurde hinzugefügt #issue/26 #36
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lrsauvette/sv-helfer!36
Loading…
Reference in a new issue
No description provided.
Delete branch "issue/26"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two small helpers for the upcoming permission gates: - usePermission(ref, p) -> bool: true if the logged-in user has the given permission. Returns false when nobody is logged in. - PermissionGate({permission, child, fallback}): renders [child] only when the user has the permission; otherwise renders [fallback] (default SizedBox.shrink). Strategy throughout the rest of the issue: hide unauthorized actions entirely (no snackbar fallback). Test covers the full role x permission matrix for admin / coSsp / svr / kw / kp / keine and asserts eigenesPasswortAendern is granted to every logged-in role.- Extracts the password-change dialog into a standalone PasswortAendernDialog so it can be opened from anywhere (currently the AppBar). Uses BenutzerStore.changeOwnPassword. - AppShell changes: - AppBar shows a compact chip with the current user's name and role label, plus a 'Passwort ändern' icon button next to the existing logout button. - Tabs are filtered by the user's role via the new _visibleTabs helper: Verwaltung needs schuelerSehen, Anträge antraegeErstellen, Wahlen wahlenErstellen, Anwesenheit anwesenheitslisteErzeugen, Kasse kasseLesen, Einstellungen always. Hidden tabs are not rendered at all (no empty body, no hidden IndexedStack child).