ACL: Hide some modules in the module section for a user group

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
morhinio
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Feb 16, 2012 3:22 pm

ACL: Hide some modules in the module section for a user group

Post by morhinio » Sat May 29, 2021 7:28 pm

Hello,

is it possible to hide some modules (site) and all admin modules in the modules section (backend).
I have created a new user group and this group have only the following global module permission:
- Access Administration Interface

The modules, which should be visible, the group have the following permissions:
- Delete
- Edit
- Edit State

Now all other modules are blocked but visible. I have tested with an own view access level, but so far without success.
Is there solution to hidden this modules?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30769
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: ACL: Hide some modules in the module section for a user group

Post by Per Yngve Berg » Sat May 29, 2021 9:12 pm

What is the parent group of this new group? It will inherit permissions from parent groups.

morhinio
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Feb 16, 2012 3:22 pm

Re: ACL: Hide some modules in the module section for a user group

Post by morhinio » Mon May 31, 2021 9:08 am

The parent group is public.

If I change the view access level for a module from public to e.g. super-user . The module is now hidden for the user group.
But now the module is also hidden in the fronted for the normal website visitior.

At the moment the user group have the following viewing access:
- own accell level
- special

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43979
Joined: Sat Apr 05, 2008 9:58 pm

Re: ACL: Hide some modules in the module section for a user group

Post by Webdongle » Mon May 31, 2021 2:05 pm

https://docs.joomla.org/J3.x:Access_Con ... t_Tutorial may be of help

btw
For back end Permissions new user groups should have Parent 'Public
#Then allow login, admin login ... everything else inherited. Access admin interface should be set per component.
New user groups for admin should be selected in 'Special' user group to allow them to see the Admin menu.
#
But read and reread the documentation to fully understand the difference (and relationship) between Permissions and user groups.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20631
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: ACL: Hide some modules in the module section for a user group

Post by leolam » Mon May 31, 2021 3:17 pm

The easiest way of avoiding endless reads on ACL and trying to understand this magic is to download a plugin called ACL Manager https://extensions.joomla.org/extension/acl-manager/ It is a commercial extension but not expensive and review the demo and you will see how easy it will helpyou. They have been doing the thinking for you

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

morhinio
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Feb 16, 2012 3:22 pm

Re: ACL: Hide some modules in the module section for a user group

Post by morhinio » Mon May 31, 2021 9:11 pm

My settings are exactly as you described them. (Webdongle)

The backend login and the access to extensions are not my problem.
I set the access admin interface for modules to allowed. I can see the extionsions modules.
But I can also see all modules when I logged in with the user group.
But I want only see a specific module of this user group. In the frontend this module should be visible to everyone (public).

Thanks to Leo. I'm looking at the extension.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43979
Joined: Sat Apr 05, 2008 9:58 pm

Re: ACL: Hide some modules in the module section for a user group

Post by Webdongle » Mon May 31, 2021 9:44 pm

morhinio wrote:
Mon May 31, 2021 9:11 pm
My settings are exactly as you described them. ...
No they are not
morhinio wrote:I have created a new user group and this group have only the following global module permission:
- Access Administration Interface
Firstly you have set that in global, my suggestion was that it is not set in global. Secondly Permissions are not set for modules theyt are set for what users (in a user group) can do.

I strongly recommend that you read the wiki docs. Using an extension for ACL is a 'catch 22'. if you don't fully understand the difference (and relationship) between Permissions and user groups then you will have difficulty configuring an ACL extension. But if you understand them then you probably not need the extension.
The Joomla ACL system can be thought of as being divided into two completely separate systems. One system controls what things on the site users can view. The other controls what things users can do (what actions a user can take). The ACL for each is set up differently.
Not understanding that is where you are getting confused.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

morhinio
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Feb 16, 2012 3:22 pm

Re: ACL: Hide some modules in the module section for a user group

Post by morhinio » Tue Jun 01, 2021 10:44 am

Webdongle, you are right. This setting had I described wrong in my first post or I had changed it in the meantime.

My mistake was to use the public access level for the modules. The parent of my user group is also public.
Now I have changed it to guest and my user group can not see the modules in the modules extension.

But some admin modules like admin menu, toolbar have the access level special. My user group also need this access level.

Is there posibility to hide this admin modules?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43979
Joined: Sat Apr 05, 2008 9:58 pm

Re: ACL: Hide some modules in the module section for a user group

Post by Webdongle » Tue Jun 01, 2021 12:19 pm

You could create a user group 'Special 2'
Select super admin and your new backend group.
Deselect your new backend group from 'Special'

Then change the Admin module view/access level to 'Special 2'. Super admin and your new backend user group would see it. But only Super admin would see the other admin modules.


To prevent the new backend user group from accessing components, articles etc. ... do NOT change global Permission for 'Access admin interface' to allow.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

morhinio
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Feb 16, 2012 3:22 pm

Re: ACL: Hide some modules in the module section for a user group

Post by morhinio » Tue Jun 01, 2021 3:42 pm

Do you mean a new acces level?
You could create a user group 'Special 2'
If I deselect my new backend group from 'Special', the toolbar, ... is hidden. Even if I select my user group to the access level 'Special 2'.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43979
Joined: Sat Apr 05, 2008 9:58 pm

Re: ACL: Hide some modules in the module section for a user group

Post by Webdongle » Tue Jun 01, 2021 7:49 pm

morhinio wrote:
Tue Jun 01, 2021 3:42 pm
Do you mean a new acces level?
You could create a user group 'Special 2'
If I deselect my new backend group from 'Special', the toolbar, ... is hidden. Even if I select my user group to the access level 'Special 2'.
Sorry yes I meant access level 'Special 2'

If Super Admin and your new user group (that signs into backend) are selected in there
.and.
The menu module is set to 'Special 2'
.then.
Both Super Admin and your new user group (that signs into backend) will see the Admin menu

Deselecting the new user group (that signs into backend) from 'Special' access level does not stop them seeing the admin menu. It will stop them seeing other modules in the backend but you could also change the view/access level in any of the Administrative modules.

User groups selected in access/view levels combined with the access level that is selected in the module (or Component, category, article or module)
=
What users in that user group see

Permissions set in Global (or preferably per Component and/or Category/article)
=
What users in the user group (that has permissions) can do to manipulate what they see i.e. Edit,delete etc.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Access Control List (ACL) in Joomla! 3.x”