Commit 98819d11 authored by Frank Bergmann's avatar Frank Bergmann

- Fixed SF issue #3566363

  in b3-5-0-patches branch
parent 51b784e3
......@@ -27,6 +27,24 @@ ad_page_contract {
{ user_id:integer "" }
}
# ---------------------------------------------------------------
# Security & Defaults
# ---------------------------------------------------------------
set current_user_id [ad_maybe_redirect_for_registration]
if {![im_permission $current_user_id "view_hours_all"]} {
ad_return_complaint 1 [lang::message::lookup "" intranet-timesheet2.Not_Allowed_to_see_hours "
You are not allowed to see all timesheet hours in the system"]
ad_script_abort
}
# ---------------------------------------------------------------
#
# ---------------------------------------------------------------
if { [empty_string_p $user_id] } {
# send them a list of users
set page_title "[_ intranet-timesheet2.View_employees_hours]"
......
......@@ -23,6 +23,23 @@ ad_page_contract {
}
# ---------------------------------------------------------------
# Security & Defaults
# ---------------------------------------------------------------
set current_user_id [ad_maybe_redirect_for_registration]
if {![im_permission $current_user_id "view_hours_all"]} {
ad_return_complaint 1 [lang::message::lookup "" intranet-timesheet2.Not_Allowed_to_see_hours "
You are not allowed to see all timesheet hours in the system"]
ad_script_abort
}
# ---------------------------------------------------------------
#
# ---------------------------------------------------------------
set page_title "[_ intranet-timesheet2.lt_Units_on_all_projects]"
set context_bar [im_context_bar "[_ intranet-timesheet2.lt_Units_on_all_projects]"]
......
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