Hi All,
The use case is to remove OOTB items/buttons from the action menu in Section edit page depending on the user roles such as, (Follow the Feed, Setup Access rights etc..)
There are example codes to add a new item to the action menu, as shown below,
How to remove an existing item from the action menu. Is there a way to achieve it?
Regards,
Adharsh S
Like
Hi Adharsh,
In this case you can set up access rights, so only needed persons(e.g. Supervisor) will be able to see the items.
Please check the next post, it contains a very detailed instruction regarding how this functionality can be implemented:
https://community.creatio.com/articles/how-show-action-set-access-right…
Best Regards,
Bogdan L.
Hi Adharsh,
In this case you can set up access rights, so only needed persons(e.g. Supervisor) will be able to see the items.
Please check the next post, it contains a very detailed instruction regarding how this functionality can be implemented:
https://community.creatio.com/articles/how-show-action-set-access-right…
Best Regards,
Bogdan L.
Bogdan Lesyk,
I am able to hide the "Setup Access Rights" based on roles by referring the document.
Similar to that when I tried to hide the "Follow the feed" based on roles. In the base I could find only the "Enable" property for the button. So I have overridden that method as below and it got disabled based on roles,
getChangeUserSubscriptionIsEnabled: function() {
return this.get("CanManageAccessRight");
}
But the requirement is to hide the button based on Roles. I also tried to override this method "getEsnTabVisible" but I am still able too see the Follow the feed button in UI.
Is there any other way to achieve this use case?
Regards,
Adharsh S