Verify resource permission
You can call a utility to verify that the current logged in user has resource permission for a particular resource ID.
Use the sc.plat.dojo.utils.ResourcePermissionUtils.hasPermission utility
to verify the resource permission. This utility takes resourceId as
an argument and returns the value true, if the current
logged in user has permission for resourceId. For
more information about resource permissions, see the JavaScript documentation.