ayon-frontend icon indicating copy to clipboard operation
ayon-frontend copied to clipboard

Permissions: Dashboard all users switch for List all users permission

Open filipvnencak opened this issue 4 weeks ago • 0 comments

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 in useUserProjectPermissions hook
  • Updated DashboardTasksToolbar to show "Me/Users" switch for users with this permission

Technical details

The permission check follows the existing pattern:

  1. Admins/managers bypass all permission checks (hasElevatedPrivileges = true)
  2. Regular users with list_all_users = true can view all users
  3. Regular users without this permission are restricted to viewing only their own tasks

Additional context

Closes #958

filipvnencak avatar Nov 28 '25 12:11 filipvnencak