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
e965a970
Commit
e965a970
authored
Apr 24, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosine 5584: Timeshet portlet should not be eliminatable
parent
b32340ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
index.tcl
www/index.tcl
+16
-3
No files found.
www/index.tcl
View file @
e965a970
...
...
@@ -40,6 +40,21 @@ set user_admin_p [im_is_user_site_wide_or_intranet_admin $current_user_id]
set
today
[
lindex
[
split
[
ns_localsqltimestamp
]
" "
]
0
]
# ----------------------------------------------------------------
# Timesheet portlet should not be deletable by any user
# ----------------------------------------------------------------
if
{
!$user_admin_p
}
{
db_dml del_timesheet_portlet_cust
"
delete from im_component_plugin_user_map
where plugin_id in (
select plugin_id
from im_component_plugins
where plugin_name = 'Home Timesheet Component'
) and
user_id = :current_user_id
"
}
# ----------------------------------------------------------------
# Check update status
...
...
@@ -55,8 +70,6 @@ if {[llength [info commands im_sysconfig_admin_guide]] > 0} {
set admin_guide_html
[
im_table_with_title
$title
[
im_sysconfig_admin_guide
]]
}
# ----------------------------------------------------------------
# Administration
# ----------------------------------------------------------------
...
...
@@ -72,7 +85,7 @@ set show_left_functional_menu_p [parameter::get_from_package_key -package_key "i
# ---------------------------------------------------------------------
#
Projects
Submenu
# Submenu
# ---------------------------------------------------------------------
# Setup the subnavbar
...
...
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