Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-invoices
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-invoices
Commits
fc0e508c
Commit
fc0e508c
authored
Apr 26, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change from cosine case: User with right to reassign WF tasks may edit despite WF running
parent
b6fe6025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
view.tcl
www/view.tcl
+3
-3
No files found.
www/view.tcl
View file @
fc0e508c
...
...
@@ -228,9 +228,9 @@ set cost_center_installed_p [apm_package_installed_p "intranet-cost-center"]
# Is there already a workflow controlling the lifecycle of the invoice?
set
wf_case_p
[
db_string wf_case
"select count(*) from wf_cases where object_id = :invoice_id"
]
set
wf_transition_key
[
db_string wf_transition
"select transition_key from wf_tasks where task_id = :task_id"
-default
""
]
if
{
"modify"
eq
$wf
_transition_key
}
{
set wf_case_p 0
}
if
{[
im_user_is_admin_p
$
user
_id
]}
{
set wf_case_p 0
}
if
{
"modify"
eq
$wf
_transition_key
}
{
set wf_case_p 0
}
;
# Transition corresponds to editing the object
if
{[
im_user_is_admin_p
$
current
_user_id
]}
{
set wf_case_p 0
};
# Admins can always override WF
if
{[
im_permission
$current
_user_id wf_reassign_tasks
]}
{
set wf_case_p 0
};
# User can override tasks anyway...
# ---------------------------------------------------------------
...
...
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