ynput / ayon-core

Apache License 2.0
18 stars 30 forks source link

Workfiles tool: Artists can see users #640

Closed iLLiCiTiT closed 3 weeks ago

iLLiCiTiT commented 3 weeks ago

Changelog Description

Fixed implementation of users model in workfiles tool.

Additional info

Only admin and manager users can see all users, other users can see only other users assigned to same projects. It is necessary to add project name filtering to users GraphQl, which requires fix in ayon-python-api, for now the code from ayon api was copied next to users model.

Testing notes:

  1. Create artist user and assign him to a project.
  2. Start AYON launcher as the user.
  3. Use host integration of your choice and open workfiles tool.
  4. It should not crash, and should show user full name.
fabiaserra commented 3 weeks ago

I can confirm this now works, thank you @iLLiCiTiT !