Validating resource permissions
You can follow the information in this topic to understand how a resource permission is validated for a task or action on the UI.
Use
isc-resource-id
directive and
iscResourcePermission
service to validate resource permission as shown in
the following code snippet:- Directive
<div isc-resource-id="WSCSYS00001"> content is shown if user has permission to the resource id</div>
- Service
if(iscResourcePermission.hasPermission("WSCSYS00001")) { //do something when user has permission to the resource }
For more information about the directive and service, refer to the javascript documentation available with the product.