From 10c2c4bbc7a58ddd2d64ca9cb0f63402d0939e61 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 23 Jun 2026 11:45:47 -0500 Subject: [PATCH] style(cpanel): remove dashboard button, shield links based on ACL Shield icon links to dashboard only if user has core.manage permission on com_mokosuiteclient. Otherwise renders as static icon. --- .../mod_mokosuiteclient_cpanel/tmpl/default.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/packages/mod_mokosuiteclient_cpanel/tmpl/default.php b/source/packages/mod_mokosuiteclient_cpanel/tmpl/default.php index 7bf17a10..29412f9e 100644 --- a/source/packages/mod_mokosuiteclient_cpanel/tmpl/default.php +++ b/source/packages/mod_mokosuiteclient_cpanel/tmpl/default.php @@ -8,6 +8,7 @@ defined('_JEXEC') or die; +use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\Session\Session; @@ -61,7 +62,12 @@ $diskColor = ($diskPct !== null && $diskPct > 90) ? 'bg-danger' : (($diskPct !==
- + getIdentity()->authorise('core.manage', 'com_mokosuiteclient'); ?> + + + + + sitename ?? ''); ?> MokoSuite mokosuiteclient_version ?? ''); ?> @@ -79,10 +85,6 @@ $diskColor = ($diskPct !== null && $diskPct > 90) ? 'bg-danger' : (($diskPct !== - - - -