79732866

Date: 2025-08-12 08:20:18
Score: 1
Natty:
Report link

In case of JS we need to use the below code on ribbon button to show and hide based on access rights:

function canCurrentUserWrite(primaryControl) {
    if (!primaryControl) return false;
 
    var privileges = primaryControl.data.entity._privileges;
 
    if (privileges && typeof privileges.canUpdate !== "undefined") {
        return privileges.canUpdate;
    }
 
    return false;
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sriramakrishna