Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-workflow
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-timesheet2-workflow
Commits
388b47c0
Commit
388b47c0
authored
Jan 27, 2008
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Cambridge permissions fixes/extensions
parent
7bb433a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
intranet-timesheet2-workflow-procs.tcl
tcl/intranet-timesheet2-workflow-procs.tcl
+3
-4
No files found.
tcl/intranet-timesheet2-workflow-procs.tcl
View file @
388b47c0
...
...
@@ -308,9 +308,8 @@ ad_proc im_timesheet_conf_new_page_wf_perm_delete_button {
}
{
set current_user_id
[
ad_get_user_id
]
set current_user_is_admin_p
[
im_is_user_site_wide_or_intranet_admin
$current
_user_id
]
set current_usre_is_hr_p
[
im_user_is_hr_p
$current
_user_id
]
set owner_id
[
util_memoize
"db_string owner
\"
select creation_user from acs_objects where object_id =
$conf
_id
\"
-default 0"
]
set current_user_is_hr_p
[
im_user_is_hr_p
$current
_user_id
]
set owner_id
[
db_string owner
"select creation_user from acs_objects where object_id =
$conf
_id"
-default 0
]
# The standard case: Only the owner should delete his own timesheet entries - to be reapproved
then
.
set perm_p 0
...
...
@@ -320,7 +319,7 @@ ad_proc im_timesheet_conf_new_page_wf_perm_delete_button {
# The included hours will simply appear as unconfirmed again.
# Admins & HR can do everything anytime.
if
{
$current
_us
re
_is_hr_p
}
{
set perm_p 1
}
if
{
$current
_us
er
_is_hr_p
}
{
set perm_p 1
}
if
{
$current
_user_is_admin_p
}
{
set perm_p 1
}
return
$perm
_p
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment