Missing toolbar icons when using ACL Topic is solved

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
sandormatyas
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Apr 20, 2021 8:56 am

Missing toolbar icons when using ACL

Post by sandormatyas » Tue Feb 15, 2022 12:44 pm

Hi guys. I wanted to create an user who is limited to add/edit VirtueMart products.
I added a new user group based on public, allowed to login to backend, allowed create, delete, edit. Also added the permissions in Virtuemart. Everything works well except there are no toolbar buttons like Save, Apply, etc. What did I miss?
I know I can use Manager group as parent but in this case the permission logic is reversed, I would need to disable all of the components and I'm afraid if we install new extensions we'll forget to remove the permissions from the editors.
Any guess with this? Which permission affects the toolbar?

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

Re: Missing toolbar icons when using ACL

Post by Webdongle » Tue Feb 15, 2022 1:26 pm

In Virtumart Options >>> Permissions ... Allow 'Access Administration Interface' for the new user group
if no avail
Users >>> Access levels ... Special ... select the new user group.
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".

sandormatyas
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Apr 20, 2021 8:56 am

Re: Missing toolbar icons when using ACL

Post by sandormatyas » Wed Feb 16, 2022 12:52 pm

Nope. If I add the new group to the special access level, I get access to all of the components and I don't want disable every single component manually. I want a disabled permission by default and allow only what I need.
But I think is not related to VirtueMart.
I added all of the permissions to com_contact and this is what I get: https://snipboard.io/eyG0KM.jpg
All access but no toolbar buttons even when everything is allowed: https://snipboard.io/iJlh01.jpg

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

Re: Missing toolbar icons when using ACL

Post by Webdongle » Wed Feb 16, 2022 1:50 pm

sandormatyas wrote:
Wed Feb 16, 2022 12:52 pm
Nope. If I add the new group to the special access level, I get access to all of the components ...
Only if you allow access in Global config. If you only allow login then they will see the Admin menu items but won't be able to add, edit delete etc. You can then just set those just for Virtumart. In order to see the menu the user needs to be in a user group that is selected in 'Special' Access level. The reason is the Admin menu module is set to 'Special' Access level.
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".

sandormatyas
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Apr 20, 2021 8:56 am

Re: Missing toolbar icons when using ACL

Post by sandormatyas » Wed Feb 16, 2022 3:36 pm

But I'm talking about the toolbar buttons not the admin menu. I don't need the menu but need the new/apply/save/trash etc icons

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

Re: Missing toolbar icons when using ACL

Post by Webdongle » Wed Feb 16, 2022 5:28 pm

If you use Manager as Parent of the new group then the Virtuemart show but not when Public is Parent, yes?
Then Manager can 'See' what your user group can not.

The Virtuemart Admin module is set at Access level 'Special'.
In order to see it :
1. Your new User group needs to be selected in the 'Special'.
Then
2. With 'Access Administration Interface' for the new user group in Global config Set Not Allowed (inherited) ... go to Virtuemart Permissions set the new user group 'Access Administration Interface' Allowed.

I have just tested and that is the only way I can get it to work

Addendum
You could change the Virtuemart Admin module Access level to public, perhaps that would work? But that would be bad practice
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".

sandormatyas
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Apr 20, 2021 8:56 am

Re: Missing toolbar icons when using ACL

Post by sandormatyas » Fri Feb 18, 2022 4:13 pm

Forget VirtueMart. It's the same with every other core components. Content, users, contact, banners etc

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

Re: Missing toolbar icons when using ACL

Post by Webdongle » Fri Feb 18, 2022 5:33 pm

sandormatyas wrote:
Fri Feb 18, 2022 4:13 pm
Forget VirtueMart. It's the same with every other core components. Content, users, contact, banners etc
hmmmm
sandormatyas wrote:
Tue Feb 15, 2022 12:44 pm
Hi guys. I wanted to create an user who is limited to add/edit VirtueMart products.
I added a new user group based on public, allowed to login to backend, allowed create, delete, edit. Also added the permissions in Virtuemart. Everything works well except there are no toolbar buttons like Save, Apply, etc. ...
Any guess with this? Which permission affects the toolbar?
Permissions do NOT control what a a logged user of a user group sees. Permissions control what that user can do with what they see.
You started off saying it was the new user group couldn't see the edit etc. menu for Virtuemart. Now you say it is all the core components. The user group needs to be selected in Users >>> View/levels >>> 'Special' to see the Virtuemart Toolbar (I tested it).

Please be more specific of your problem a few screenshots would help.
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".

sandormatyas
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Apr 20, 2021 8:56 am

Re: Missing toolbar icons when using ACL

Post by sandormatyas » Sat Feb 19, 2022 8:50 am

I didn't say anything about the menu. VirtueMart was an example but this is the same with the other component.
But you're right I tried so many things, I accidentaly added Access Administration Interface globally. So when I removed this and assigned the group to special level, I got the toolbar buttons. The key was that I didn't know that toolbar is a module :)
Thanks for your help

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

Re: Missing toolbar icons when using ACL

Post by Webdongle » Sat Feb 19, 2022 9:46 am

Glad you understand it now.
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”