Hi,
I would like to set up a trigger to change the permission of a new created asset. I hope to give the asset creater the write permission. How can I set up?
:lol:’ /> <img src=‘http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/laugh.gif’ class=‘bbc_emoticon’ alt=':lol:
Robin
A person who creates an asset always has Write permission, otherwise they wouldn't be able to create the asset in the first place. :)
Sorry Avi, I didn't make it clear.
I was saying the case for asset builder with "ignore permissions". I hope to set the asset write permission to its creater automatically and each asset has different permissions.
Robin
This should be possible with a trigger. I'll have to look at it tomorrow when I'm at work, though. :)
Hi Avi, did you find this option? :lol:’ /> <img src=‘http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/laugh.gif’ class=‘bbc_emoticon’ alt=':lol:
Sorry, no. I've been up to my eyeballs preparing for the User Conference. Your best bet is to log a support request with Squiz Support so that we can look at it officially for you. :)
Try…
Events
'Asset Created'
Conditions
'Access Permission' -> Current user 'does not have' 'Write Permission'
Actions
'Set Permission' -> 'Grant' 'Write' access for … Dynamic
Parameter 'Userid or Groupid'
Source 'Current User'
[quote]Try…
Events
'Asset Created'
Conditions
'Access Permission' -> Current user 'does not have' 'Write Permission'
Actions
'Set Permission' -> 'Grant' 'Write' access for … Dynamic
Parameter 'Userid or Groupid'
Source 'Current User'[/quote]
Thank you Aleks, That's where I was stuck before posting. I got this error msg
MySource Notice
File: [SYSTEM_ROOT]/core/assets/system/triggers/trigger/trigger_edit_fns.inc Line: 788
Message: Action 1 (trigger_action_set_permission) not saved. User id is not specified [CORE0130]
I think you have to specify a 'default' userid, even though you want to use a dynamic parameter