Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/* Control Privileges */SELECT roc.ROLE_ID,roc.ROLE_NAME,:OBJ_ID AS OBJ_ID,perm_visible.PERM_ID AS perm_visible_id,perm_visible.PERM_VALUE AS visible_value,perm_active.PERM_ID AS perm_active_id,perm_active.PERM_VALUE AS active_valueFROM(/* Get All Roles for this Application */SELECT ro.ROLE_ID,ro.ROLE_NAMEFROM ROLES roWHERE ro.APP_ID = :APP_IDAND ro.IS_ROLE_VARIATION IS NULL) roc,(/* Get "Visible" Settings */SELECT rp.ROLE_ID,co.OBJ_ID,rp.PERM_ID,rp.PERM_VALUEFROM ROLE_PRIVILEGES rp,CONTROL_OBJECTS coWHERE rp.OBJ_ID = co.obj_idAND co.OBJ_ID = :OBJ_IDAND rp.PERM_ID = 1AND co.APP_ID = :APP_ID) perm_visible,(/* Get "Active" Settings */SELECT rp.ROLE_ID,co.OBJ_ID,rp.PERM_ID,rp.PERM_VALUEFROM ROLE_PRIVILEGES rp,CONTROL_OBJECTS coWHERE rp.OBJ_ID = co.obj_idAND co.OBJ_ID = :OBJ_IDAND rp.PERM_ID = 2AND co.APP_ID = :APP_ID) perm_activeWHERE perm_active.role_id (+)= roc.role_idAND perm_visible.role_id (+)= roc.role_idORDER BY UPPER(roc.ROLE_NAME)