Commit 4b87d760 authored by Frank Bergmann's avatar Frank Bergmann

- Fixed issue showing the GanttEditor for a sub-project or task

parent 6e9e7977
......@@ -410,7 +410,7 @@ Ext.onReady(function() {
</div>
</if>
<else>
<if "0" eq @read_p@>
<if "" ne @main_project_parent_id@>
Project #@project_id@ is a sub-project, so we can't show a Gantt Editor for it.
</if>
</else>
......
......@@ -17,6 +17,9 @@
set page_url [im_url_with_query]
set current_user_id [auth::require_login]
set main_project_id $project_id; # project_id may be overwritten by SQLs below
set main_project_parent_id [db_string mppi "select parent_id from im_projects where project_id = :main_project_id" -default ""]
if {"" ne $main_project_parent_id} { set main_project_id "" }
# Determine the permission of the user
im_project_permissions $current_user_id $main_project_id view_p read_p write_p admin_p
......
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