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; } }