?
avatar aschkenasy
aschkenasy
24 Nov 2017

Steps to reproduce the issue

In administration assign a module the "guest" access

Expected result

module will be displayed to guests only.
mosule should be editable by admin from backend...
(just to state the obvious... such is the behavior in =< 3.8.1)

Actual result

module disappears from administrator list (that's because the currently logged in admin is not a "guest")

System information (as much as possible)

Additional comments

avatar aschkenasy aschkenasy - open - 24 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 24 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Nov 2017
avatar aschkenasy
aschkenasy - comment - 24 Nov 2017

administrator/components/com_modules/models/modules.php

lines 315 - 320
are to blame

// Filter by current user access level.
// Get the current user for authorisation checks
$user   = JFactory::getUser();
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Nov 2017
Category ACL com_modules
avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Nov 2017
Status New Duplicate Report
Closed_Date 0000-00-00 00:00:00 2017-11-24 05:59:21
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 24 Nov 2017
Status Duplicate Report Closed
Closed_Date 2017-11-24 05:59:21 2017-11-24 05:59:22
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 24 Nov 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Nov 2017

closed as duplicate Report #18542

Add a Comment

Login with GitHub to post a comment