Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
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-rest
Commits
5fb14cca
Commit
5fb14cca
authored
Nov 07, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed GanttEditor issue deleting task before saving
parent
b59bceb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
intranet-rest-data-source-procs.tcl
tcl/intranet-rest-data-source-procs.tcl
+2
-1
No files found.
tcl/intranet-rest-data-source-procs.tcl
View file @
5fb14cca
...
...
@@ -122,7 +122,8 @@ ad_proc im_rest_project_task_tree_delete {
}
# project_id exists - update the existing task
set object_type
[
util_memoize
[
list
db_string otype
"select object_type from acs_objects where object_id =
$project
_id"
]]
set object_type
[
util_memoize
[
list
db_string otype
"select object_type from acs_objects where object_id =
$project
_id"
-default
""
]]
if
{
""
eq
$object
_type
}
{
return
};
# Delete object before it really was created. Kind of OK...
${object_type}
_permissions
$current
_user_id
$project
_id view read write admin
if
{
!$admin
}
{
doc_return 200
"text/plain"
"{success:false, message: 'No permissions to admin project_id=
$project
_id for user=
$current
_user_id'}"
...
...
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