Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-cost
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-cost
Commits
46802735
Commit
46802735
authored
Mar 27, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now updating context_id of cost centers to allow privilege propagation
parent
d79d7a6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
new-postgresql.xql
www/cost-centers/new-postgresql.xql
+0
-13
new.tcl
www/cost-centers/new.tcl
+16
-2
No files found.
www/cost-centers/new-postgresql.xql
View file @
46802735
...
...
@@ -28,17 +28,4 @@
</querytext>
</fullquery>
<fullquery
name=
"cost_center_context_update"
>
<querytext>
update acs_objects set
context_id = :parent_id
where object_id = :cost_center_id;
</querytext>
</fullquery>
</queryset>
www/cost-centers/new.tcl
View file @
46802735
...
...
@@ -111,9 +111,16 @@ ad_form -extend -name cost_center -on_request {
ad_script_abort
}
# 2023-03-13 fraber: context_id passes permissions
# from super cost-centers down the hierarchy, so
# this update is necessary.
# 2014-02-20 fraber: Generates a strange error.
# Why was this necessary in the first place?
# db_dml cost_center_context_update
{}
db_dml cost_center_context_update
{
update acs_objects set
context_id = :parent_id
where object_id = :cost_center_id
}
im_dynfield::attribute_store
\
-object_type
"im_cost_center"
\
...
...
@@ -147,9 +154,16 @@ ad_form -extend -name cost_center -on_request {
ad_script_abort
}
# 2023-03-13 fraber: context_id passes permissions
# from super cost-centers down the hierarchy, so
# this update is necessary.
# 2014-02-20 fraber: Generates a strange error.
# Why was this necessary in the first place?
# db_dml cost_center_context_update
{}
db_dml cost_center_context_update
{
update acs_objects set
context_id = :parent_id
where object_id = :cost_center_id
}
im_dynfield::attribute_store
\
-object_type
"im_cost_center"
\
...
...
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