ynput / ayon-ftrack

Apache License 2.0
3 stars 9 forks source link

Attribute permissions: Allow to change AYON ID and path to anyone #111

Closed iLLiCiTiT closed 3 months ago

iLLiCiTiT commented 3 months ago

Description

Change write permissions of AYON id and AYON path to be empty -> any user can change them.

Additional information

The attributes are filled during publishing on version entity, but if users don't have permissions it just silently logs error without doing it.

Note

This opens possible hell by giving artist permissions to change backend attribute. Maybe we should find better approach how to achieve this in future? Not sure how exactly, maybe by using event system?

Testing notes

Testing requires to have artist user on ftrack without admin permissions.

  1. Run tray as admin.
  2. Run Create/Update custom attributes action on ftrack to update attributes permissions.
  3. Run tray with ftrack user that does not have admin nor API permissions.
  4. Publish something.
  5. AYON id and AYON path should be filled and Publisher should not show errors for Integrate ftrack plugin.
ynbot commented 3 months ago

Task linked: AY-6140 ayon_id and ayon_path issue