Skip to content

Commit

Permalink
[4.4] Set permission for add-module-to-dashboard button (#42467)
Browse files Browse the repository at this point in the history
* Set permission for add-module-to-dashboard button

* more precise access check

* fix access for administrateo

---------
  • Loading branch information
chmst committed Jun 27, 2024
1 parent 69bca95 commit 2b458a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
echo ModuleHelper::renderModule($module, ['style' => 'well']);
}
?>
<?php if ($user->authorise('core.create', 'com_modules')) : ?>
<?php if ($user->authorise('core.admin', 'com_modules') && $user->authorise('core.create', 'com_modules')) : ?>
<div class="module-wrapper">
<div class="card">
<button type="button" data-bs-toggle="modal" data-bs-target="#moduleDashboardAddModal" class="cpanel-add-module">
Expand Down

0 comments on commit 2b458a3

Please sign in to comment.