Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
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-core
Commits
18cf0357
Commit
18cf0357
authored
Jun 16, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosine: component_bay: allowing to override URL
parent
49bf1496
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
intranet-component-procs.tcl
tcl/intranet-component-procs.tcl
+3
-2
No files found.
tcl/intranet-component-procs.tcl
View file @
18cf0357
...
...
@@ -137,6 +137,7 @@ ad_proc -public im_component_box {
ad_proc -public im_component_bay
{
{
-page_url
""
}
location
{
view_name
""
}
}
{
...
...
@@ -148,7 +149,7 @@ ad_proc -public im_component_bay {
im_security_alert_check_alphanum -location
"im_component_bay: view_name"
-value
$view
_name
# Get the URL of the current page
set url_stub
[
im_component_page_url
]
if
{
""
eq
$page
_url
}
{
set page_url
[
im_component_page_url
]
}
# Check if there is atleast one permission set for im_plugin_components
set any_perms_set_p
[
im_component_any_perms_set_p
]
...
...
@@ -172,7 +173,7 @@ ad_proc -public im_component_bay {
) m
on (c.plugin_id = m.plugin_id)
where
c.page_url = '
$
url
_stub
' and
c.page_url = '
$
page
_url
' and
(c.enabled_p is null OR c.enabled_p = 't') and
(view_name is null or view_name = '
$view
_name')
) p
...
...
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