Action syncToAvalon - changed identifier and label. Is visible only for role 'Pypeclub'

This commit is contained in:
Jakub Trllo 2018-12-06 10:13:47 +01:00
parent a7ac81dcc1
commit 3fda5c32b3

View file

@ -48,9 +48,9 @@ class SyncToAvalon(BaseAction):
'''
#: Action identifier.
identifier = 'sync.to.avalon'
identifier = 'sync.to.avalon.local'
#: Action label.
label = 'SyncToAvalon'
label = 'SyncToAvalon - Local'
#: Action description.
description = 'Send data from Ftrack to Avalon'
#: Action icon.
@ -61,7 +61,7 @@ class SyncToAvalon(BaseAction):
''' Validation '''
roleCheck = False
discover = False
roleList = ['Administrator', 'Project Manager']
roleList = ['Pypeclub']
userId = event['source']['user']['id']
user = session.query('User where id is ' + userId).one()