Commit f7c9646e authored by Frank Bergmann's avatar Frank Bergmann

- excluding disabled menus

parent 636b899e
......@@ -748,7 +748,8 @@ ad_proc -public im_navbar_write_tree_helper {
(select count(*) from im_menus where parent_menu_id = m.menu_id) as sub_count
from im_menus m
where m.parent_menu_id = :main_menu_id and
im_object_permission_p(m.menu_id, :user_id, 'read') = 't'
im_object_permission_p(m.menu_id, :user_id, 'read') = 't' and
(enabled_p is null OR enabled_p = 't')
order by sort_order
"
......
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