Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Megamenu restriction on access levels #128

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions source/plg_system_t3/includes/admin/megamenu.php
Expand Up @@ -26,12 +26,8 @@ public static function display()
$menutype = $input->get('t3menu', 'mainmenu');

//accessLevel
$accessLevel = array();
$t3acl = (int) $input->get('t3acl', 1);
for ($i = 1; $i <= $t3acl; $i++) {
$accessLevel[] = $i;
}
$accessLevel = array_unique($accessLevel);
$accessLevel = array($t3acl);

//languages
$languages = array(trim($input->get('t3lang', '*')));
Expand Down Expand Up @@ -243,7 +239,6 @@ public static function access()
$query->group('a.id, a.title, a.ordering');
$query->order('a.ordering ASC');
$query->order($query->qn('title') . ' ASC');
$query->where('a.id in (1,2,3)'); //we only support Public, Registered, Special

// Get the options.
$db->setQuery($query);
Expand Down
2 changes: 1 addition & 1 deletion source/plg_system_t3/languages/en-GB.plg_system_t3.ini
Expand Up @@ -161,7 +161,7 @@ T3_NAVIGATION_MM_ENABLE_LABEL ="Enable MegaMenu"
T3_NAVIGATION_MM_ENABLE_DESC ="Enable or disable Megamenu"
T3_NAVIGATION_MM_TYPE_LABEL ="Menu"
T3_NAVIGATION_MM_TYPE_DESC ="Select a menu to configure Megamenu for the menu items in the selected menu."
T3_NAVIGATION_ACL_LABEL ="Access"
T3_NAVIGATION_ACL_LABEL ="Joomla Access Level"
T3_NAVIGATION_ACL_DESC ="The access level group that allow to view menu"

T3_NAVIGATION_SAVE_SUCCESSFULLY ="Configuration changes saved successfully"
Expand Down