ayon-frontend
ayon-frontend copied to clipboard
Permissions: Dashboard all users switch for List all users permission
Description of changes
Add support for studio.list_all_users permission to allow non-admin users to view all users' tasks in the Dashboard.
- Added
canListAllUsers()method inuseUserProjectPermissionshook - Updated
DashboardTasksToolbarto show "Me/Users" switch for users with this permission
Technical details
The permission check follows the existing pattern:
- Admins/managers bypass all permission checks (
hasElevatedPrivileges = true) - Regular users with
list_all_users = truecan view all users - Regular users without this permission are restricted to viewing only their own tasks
Additional context
Closes #958