angela
7 years agoCatalyst II
Check if user has certain permissions in client side Method
Hi,
I created a custom Action in ItemType 'Part' that calls a client Method. Only the Part Owner shall be able to run the Action.
The Owner can be one person or a user group. How can I check, if the...
- 7 years agoHi, you can use this:
function pb_isCurrUserMemberOfIdentityId(identity_to_check) { if (identity_to_check === "") {return false;} var sessionIdentitites_array = top.aras.getIdentityList().split(","); // now we have all identities the current user (session) is member of // scan if given identity is in the list - if yes, return true for (var i=0;i<sessionIdentitites_array.length;i++) { if (identity_to_check == sessionIdentitites_array) {return true;} } return false; };