mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
added discover validations
This commit is contained in:
parent
918d588225
commit
63e7da261f
1 changed files with 5 additions and 1 deletions
|
|
@ -28,7 +28,11 @@ class CreateFolders(BaseAction):
|
|||
|
||||
def discover(self, session, entities, event):
|
||||
''' Validation '''
|
||||
|
||||
not_allowed = ['assetversion']
|
||||
if len(entities) != 1:
|
||||
return False
|
||||
if entities[0].entity_type.lower() in not_allowed:
|
||||
return False
|
||||
return True
|
||||
|
||||
def getShotAsset(self, entity):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue