Skip to content

Commit

Permalink
# [#32215] *Setting frontend editing new Global Configuration setting…
Browse files Browse the repository at this point in the history
… to Modules & menus breaks back-end display
  • Loading branch information
phproberto committed Oct 9, 2013
1 parent 2888161 commit f888ba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions installation/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $ -> Language fix or change

09-Oct-2013 Elin Waring
# [#32214] *ACL settings do not display for components. Thanks Michael Babker
# [#32215] *Setting frontend editing new Global Configuration setting to Modules & menus breaks back-end display. Thanks Roberto Segura

08-Oct-2013 Michael Babker
^ [#31347] Introducing HTML5 form fields and attributes - GSOC. Thanks Achal Aggarwal
Expand Down
2 changes: 1 addition & 1 deletion libraries/joomla/document/html/renderer/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function render($position, $params = array(), $content = null)
{
$moduleHtml = $renderer->render($mod, $params, $content);

if ($canEdit && trim($moduleHtml) != '' && $user->authorise('core.edit', 'com_modules.module.' . $mod->id))
if ($app->isSite() && $canEdit && trim($moduleHtml) != '' && $user->authorise('core.edit', 'com_modules.module.' . $mod->id))
{
$displayData = array('moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing);
JLayoutHelper::render('joomla.edit.frontediting_modules', $displayData);
Expand Down

0 comments on commit f888ba5

Please sign in to comment.