Skip to content

Update to v0.2.1#9

Merged
matteospanio merged 10 commits intomasterfrom
dev
Jan 5, 2026
Merged

Update to v0.2.1#9
matteospanio merged 10 commits intomasterfrom
dev

Conversation

@matteospanio
Copy link
Member

Copilot AI and others added 10 commits January 3, 2026 15:46
Co-authored-by: matteospanio <50635581+matteospanio@users.noreply.github.com>
…e-display

Fix: Render flash messages on all admin pages
Previously, manager users could log in to the admin dashboard but could not
access any table views (Users, Dishes, Menus, Attributes, Logs). This was
because most views used SecureModelView which only allowed admin users.

Changes:
- Added ManagerEditableView class for full CRUD access (managers + admins)
- Added ManagerReadOnlyView class for read-only access with dynamic
  permissions based on role (admins get full access, managers read-only)
- Updated UserAdminView to inherit from ManagerReadOnlyView so managers
  can view users but not edit them
- Updated MenuAdminView to inherit from ManagerEditableView for full access
- Updated Dishes and Attributes views to use ManagerEditableView
- Updated tests to reflect new expected behavior

Manager permissions now:
- Users: Read-only (view list/details, no edit)
- Menus, Dishes, Attributes: Full CRUD access
- Request Logs: Read-only (already working, kept as-is)

All tests pass: admin users retain full access, manager users can now
access all views with appropriate permissions.

Fixes #[issue-number]
…-access-1X3Br

Claude/fix manager table access 1 x3 br
Update to v0.2.1
Admin can set user password when creating a new user and managers can view record details
Fix whitespaces in all files
Remove an old test line that after merge conflict was in the wrong place
@matteospanio matteospanio added bug Something isn't working enhancement New feature or request labels Jan 5, 2026
@matteospanio matteospanio merged commit 383968d into master Jan 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Bug: Manager users cannot open table views in admin dashboard 🐛 Bug: Admin flashes are not displayed correctly

3 participants