Skip to content

Commit

Permalink
[4.0] Modulle cog permissions (#21932)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman authored and wilsonge committed Aug 31, 2018
1 parent b11c9f3 commit f4a4f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/templates/atum/html/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function modChrome_well($module, &$params, &$attribs)
{
// Permission checks
$user = Factory::getUser();
$canEdit = $user->authorise('core.edit', 'com_modules.module.' . $module->id);
$canEdit = $user->authorise('core.edit', 'com_modules.module.' . $module->id) && $user->authorise('core.manage', 'com_modules');

$moduleTag = $params->get('module_tag', 'div');
$bootstrapSize = (int) $params->get('bootstrap_size', 6);
Expand Down

0 comments on commit f4a4f2a

Please sign in to comment.