This question has been flagged
1 Reply
5179 Views

Can i stop a group of users from executing a server action in More menu?

I have defined a model for which a certain group has all rights (read/write/delete). However there are some other server actions for pushing objects of this group to another environment (from the 'More' menu). I do not want to give the rights to perform this server action to normal group but limit it only to the admin. Can i hide a link in more menu based on user group

 

Avatar
Discard
Author

Got this partly done using the condition attribute and calling a method from condition attribute

Best Answer

Has_group function used:


whatever you can retrive from this server action....got to that code or function ....

give only one condtion that can check that this group of users coming...then it will execute this code ..otherwise it's not.


for ex:- 

if self.env.user.has_group("give access right group here"):

//code which will execute.

Avatar
Discard