Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-riskmanagement
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-riskmanagement
Commits
3e0e53a9
Commit
3e0e53a9
authored
Sep 14, 2018
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed permission issue
parent
177f61aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
new.tcl
www/new.tcl
+4
-0
No files found.
www/new.tcl
View file @
3e0e53a9
...
...
@@ -91,9 +91,11 @@ set edit_risk_status_p 1
# Permissions
if
{[
info
exists risk_id
]}
{
set risk_name
[
db_string risk_name
"select risk_name from im_risks where risk_id = :risk_id"
-default
""
]
im_risk_permissions
$user
_id
$risk
_id view_p read_p write_p admin_p
if
{
!$read_p
}
{
ad_return_complaint 1
"You don't have permissions to see this risk #
$risk
_id"
}
}
else
{
set risk_name
""
im_project_permissions
$user
_id
$risk
_project_id view_p read_p write_p admin_p
if
{
!$write_p
}
{
ad_return_complaint 1
"You don't have permissions to add a new risk to project #
$risk
_project_id"
}
}
...
...
@@ -330,6 +332,8 @@ ad_form -extend -name riskmanagement_risk -on_request {
ad_script_abort
}
-edit_data
{
if
{
!$write_p
}
{
ad_return_complaint 1
"You are trying to modify an object without permissions"
;
ad_script_abort
}
if
{
!
[
info
exists risk_probability_percent
]
|| !
[
info
exists risk_impact
]}
{
ad_return_complaint 1
$conf
_error_message
...
...
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