Commit f7099570 authored by Frank Bergmann's avatar Frank Bergmann

- Changed ad_conn_user_id to ad_conn user_id

- Added workflow updates in order to eliminate
  "modify" as the first transition in a WF
parent e362e9bb
Pipeline #414 failed with stages
......@@ -23,7 +23,7 @@ ad_proc im_rest_project_task_tree_action {
Create, Update or Delete a task coming from TreeStore
} {
ns_log Notice "im_rest_project_task_tree_action: var_hash_list=$var_hash_list"
set current_user_id [ad_get_user_id]
set current_user_id [ad_conn user_id]
array set var_hash $var_hash_list
# Ignore the root of the tree that might be send by the Sencha side
......@@ -55,7 +55,7 @@ ad_proc im_rest_project_task_tree_update {
Update a task coming from TreeStore
} {
ns_log Notice "im_rest_project_task_tree_update: project_id=$project_id, var_hash_list=$var_hash_list"
set current_user_id [ad_get_user_id]
set current_user_id [ad_conn user_id]
array set var_hash $var_hash_list
if {"" == $project_id} {
......@@ -98,7 +98,7 @@ ad_proc im_rest_project_task_tree_delete {
Delete a task coming from TreeStore
} {
ns_log Notice "im_rest_project_task_tree_delete: project_id=$project_id, var_hash_list=$var_hash_list"
set current_user_id [ad_get_user_id]
set current_user_id [ad_conn user_id]
array set var_hash $var_hash_list
if {"" == $project_id} {
......@@ -131,7 +131,7 @@ ad_proc im_rest_project_task_tree_create {
Create a new task coming from TreeStore
} {
ns_log Notice "im_rest_project_task_tree_create: project_id=$project_id, var_hash_list=$var_hash_list"
set current_user_id [ad_get_user_id]
set current_user_id [ad_conn user_id]
array set var_hash $var_hash_list
# No project_id!
......
......@@ -87,7 +87,7 @@ ad_proc -private im_rest_cookie_auth_user_id {
ns_log Notice "im_rest_cookie_auth_user_id: ad_session_id=$ad_session_id"
set rest_user_id ""
catch { set rest_user_id [ad_get_user_id] }
catch { set rest_user_id [ad_conn user_id] }
if {"" != $rest_user_id} {
ns_log Notice "im_rest_cookie_auth_user_id: found authenthicated rest_user_id: storing into cache"
......@@ -107,7 +107,7 @@ ad_proc -private im_rest_cookie_auth_user_id {
ns_log Notice "im_rest_cookie_auth_user_id: ad_user_login=$ad_user_login"
set rest_user_id ""
catch { set rest_user_id [ad_get_user_id] }
catch { set rest_user_id [ad_conn user_id] }
if {"" != $rest_user_id} {
ns_log Notice "im_rest_cookie_auth_user_id: found authenticated rest_user_id: storing into cache"
ns_cache set im_rest $ad_user_login $rest_user_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment