I want to enable/disable an action in the "moreActionMenu" depending: 1. Connected user need a "myPerm" permission. 2. The current node would have a "myAspect" Aspect
My approach: —————
1. Defining an action referenced by the browse_actions_menu action-group:
2. I want to "specialize" the "myPerm" permission to the "myAspect" Aspect: <permissionSet type="ci:myAspect" expose="selected"> <permissionGroup name="myPerm" expose="true" allowFullControl="false"/> </permissionGroup> </permissionSet>
Questions: 1. Is the approach is correct? –> I read this… http://forums.alfresco.com/viewtopic.php?t=2227 If i good understand it, it means that it was not implemented on 27 Jun 2005 Is it implemented at moment or not?
2. I should like to have the same "permission name" (–> myPerm) on severals Aspect. Somethink like:
<permissionSet type="ci:myAspect1" expose="selected"> <permissionGroup name="myPerm" expose="true" allowFullControl="false"/> </permissionGroup> </permissionSet> <permissionSet type="ci:myAspect2" expose="selected"> <permissionGroup name="myPerm" expose="true" allowFullControl="false"/> </permissionGroup> </permissionSet> Is it correct? Can I do that? If yes, I can "reduce" my actions list: <action id="id_of_action"> <permissions> <permission allow="true">myPerm</permission> </permissions> <!– Evaluator will check on a list of specified aspect –> <evaluator>my.specific.evaluator.NodeHasMyAspectXXX</evaluator> … </action>
if not, do i need to "repeat" the action with different permission and aspect for one single action menu?
–> Only the menu linked to the node with a specific aspect should be visible.