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
8aace95b
Commit
8aace95b
authored
Apr 24, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosine 5584: Redirect prohibiting only when redirect is enabled
parent
e965a970
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
index.tcl
www/index.tcl
+3
-1
No files found.
www/index.tcl
View file @
8aace95b
...
...
@@ -44,7 +44,9 @@ set today [lindex [split [ns_localsqltimestamp] " "] 0]
# Timesheet portlet should not be deletable by any user
# ----------------------------------------------------------------
if
{
!$user_admin_p
}
{
# Delete the custom position of the timesheet portlet if redirect is enabled
set
redirect_p
[
parameter::get -package_id
[
im_package_timesheet2_id
]
-parameter
"TimesheetRedirectHomeIfEmptyHoursP"
-default 0
]
if
{
$redirect
_p && !$user_admin_p
}
{
db_dml del_timesheet_portlet_cust
"
delete from im_component_plugin_user_map
where plugin_id in (
...
...
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