Commit 0c5686b8 authored by adrtel's avatar adrtel

- Fixed returning error message from tree-action:

  JSON messages can't have multiple lines...
parent 85f233d6
......@@ -93,8 +93,7 @@ ad_proc im_rest_project_task_tree_update {
${object_type}_permissions $current_user_id $project_id view read write admin
if {!$write} {
doc_return 200 "text/plain" "{success:false, message: 'User #$current_user_id ([im_name_from_user_id $current_user_id]) has not enough permissions<br>
to modify task or project #$project_id ([acs_object_name $project_id])'}"
doc_return 200 "text/plain" "{success:false, message: 'User #$current_user_id ([im_name_from_user_id $current_user_id]) has not enough permissions to modify task or project #$project_id ([acs_object_name $project_id])'}"
return
}
......
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