From cfd709e04bcdfe803485517d08eb4ebbb08222d3 Mon Sep 17 00:00:00 2001 From: jennylee Date: Tue, 4 Jun 2013 15:39:47 -0400 Subject: [PATCH] BUG 11980. Change the Administrator User Role to Operator Role. SOLVED On Admin > Users > Roles > choose Operator or Manager Role > Users > Assign Users, click on Administrator from the Available Users List and then assign this to the Assigned Users List, PM allowed you assign the Administrator user to the Operator/Manager Role. Now PM shows a notification popup saying this is not allowed. --- workflow/engine/methods/roles/roles_Ajax.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow/engine/methods/roles/roles_Ajax.php b/workflow/engine/methods/roles/roles_Ajax.php index edd2a6b74..d3aba1ec9 100755 --- a/workflow/engine/methods/roles/roles_Ajax.php +++ b/workflow/engine/methods/roles/roles_Ajax.php @@ -164,7 +164,9 @@ switch ($REQUEST) { $sData['ROL_UID'] = $ROL_UID; if ($sData['USR_UID'] == '00000000000000000000000000000001') { if ($sData['ROL_UID'] != 'PROCESSMAKER_ADMIN') { - echo '{userRole: true}'; + $response = new stdclass(); + $response->userRole = true; + echo G::json_encode($response); break; } }