Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
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-helpdesk
Commits
b413d6bd
Commit
b413d6bd
authored
Oct 03, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Helpdesk:
Fixed bug reversing Gustaf changes in expr
parent
9dbc8aff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
intranet-helpdesk-procs.tcl
tcl/intranet-helpdesk-procs.tcl
+5
-5
No files found.
tcl/intranet-helpdesk-procs.tcl
View file @
b413d6bd
...
...
@@ -203,12 +203,12 @@ ad_proc -public im_ticket_permissions {
return 0
}
set owner_p
[
expr
{
$user
_id ==
$creation
_user_id
}
]
set assignee_p
[
expr
{
$user
_id ==
$ticket
_assignee_id
}
]
set customer_p
[
expr
{
$customer
_member_p ||
$user
_id ==
$ticket
_customer_contact_id
}
]
set owner_p
[
expr
$user
_id ==
$creation
_user_id
]
set assignee_p
[
expr
$user
_id ==
$ticket
_assignee_id
]
set customer_p
[
expr
$customer
_member_p ||
$user
_id ==
$ticket
_customer_contact_id
]
set read
[
expr
{
$admin
_p ||
$owner
_p ||
$assignee
_p ||
$customer
_p ||
$sla
_member_p ||
$ticket
_member_p ||
$holding
_user_p ||
$case
_assignee_p ||
$queue
_member_p ||
$view
_tickets_all_p ||
$edit
_tickets_all_p
}
]
set write
[
expr
{
$admin
_p ||
$edit
_tickets_all_p ||
$ticket
_admin_p
}
]
set read
[
expr
$admin
_p ||
$owner
_p ||
$assignee
_p ||
$customer
_p ||
$sla
_member_p ||
$ticket
_member_p ||
$holding
_user_p ||
$case
_assignee_p ||
$queue
_member_p ||
$view
_tickets_all_p ||
$edit
_tickets_all_p
]
set write
[
expr
$admin
_p ||
$edit
_tickets_all_p ||
$ticket
_admin_p
]
set view
$read
set admin
$write
...
...
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