More handling of Roles Hot

by Paul Thompson on June 19, 2015

As a developer, I would like to use Roles to control access to specific workflow features or UI elements. While a Transition may be restricted to a Role, I would like to use Roles in Rules and Form Actions.

  • Allow a Rule to be something like "Selected Manager" (single user field) Has Role "Can Terminate Item" "Current User" Has Role "Can Attach Resume" Allow a Form Action: When Form Loads If Current User Has Role "Can Update User Info" Then Enable "XYZ" Else Disable XYZ" Allow a JavaScript library call: if ( UserHasRole( "Owner" , "Can Update User Info") ) { ... do stuff... } or var uRole , uRoles = UserRoles('Owner'); // Returns array of objects, each with .name , .internalname , .id , .uuid attributes for (uRole in uRoles) { if (uRole.name === 'Can Update User Info') { ... do stuff... alert('Owner has Role with UUID = ' + uRoles['Can Update User Info'].uuid); } }

  • Please login to view any attachments.

  • Consideration of this item has been deferred to the 2HCY'17 release.
    David J. Easter Commented by David J. Easter February 15, 2017
    #1 Reviewer  -  

    Consideration of this item has been deferred to the 2HCY'17 release.

    Thanks for entering this one Paul. I absolutely agree.
    Tom Clement Commented by Tom Clement August 19, 2015
    Top 10 Reviewer  -  

    Thanks for entering this one Paul. I absolutely agree.

    We will put this idea Under Consideration for the 1HCY'16 release of SBM.
    David J. Easter Commented by David J. Easter August 07, 2015
    #1 Reviewer  -  

    We will put this idea Under Consideration for the 1HCY'16 release of SBM.

     

PrintEmail

Recent Tweets