[Skip to main content](#vessel-content)

#   ACL with 1.5.3 not working correctly

##

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 2 months ago [\#22649](#22649) by [momentis](/forum/user/364-momentis "View momentis's Profile")  *[ACL with 1.5.3 not working correctly](/forum/3-bug-report/22649-acl-with-1-5-3-not-working-correctly#22649 "The other day, I upgraded to 1.5.3 in order to fix an issue with the Category Search function. This latest version of HikaShop (1.5.3) seems to not be handling the Joomla ACL in the same way it did...")* was created by *[momentis](/forum/user/364-momentis "View momentis's Profile")*

The other day, I upgraded to 1.5.3 in order to fix an issue with the Category Search function. This latest version of HikaShop (1.5.3) seems to not be handling the Joomla ACL in the same way it did prior. I have the following user groups in Joomla (version 1.6.5):

Distributors
--Company 1
--Company 2
--Company 3
Suppliers
--Supplier 1
--Supplier 2
--Supplier 3

Within HikaShop, I have the following categories:

Company Images
--Company 1
--Company 2
--Company 3
Supplier 1
Supplier 2
Supplier 3

An end user can be a member of only one Distributor user group (for example, Company 1), and can be members of any number of Supplier user groups (for example, Supplier 1 and Supplier 3). However, the users are not placed as members of the Distributors user group. Within HikaShop, each company is granted access to their company images by assigning their company Joomla user group to that HikaShop category (example, Distributors&gt;Company 1 = Company Images&gt;Company 1). That worked perfect until this upgrade. Now, it seems, HikaShop will not respect the ACL as I have had it working, and will not display the Company Images any longer. If I add the user to the Joomla user group Distributors, HikaShop will then display their subcategory properly. As the Joomla user group for each Distributor is a higher level than the Distributor group, I would expect the Company user group to inherit rights.

I hope this all makes sense!!

The site can be found at:
[ www.thegragroup.com/storefront](http://www.thegragroup.com/storefront)

Thanks!
Rick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMjY0OS1hY2wtd2l0aC0xLTUtMy1ub3Qtd29ya2luZy1jb3JyZWN0bHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86309
- Thank you received: 14273
-
-

15 years 2 months ago [\#22660](#22660) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: ACL with 1.5.3 not working correctly](/forum/3-bug-report/22649-acl-with-1-5-3-not-working-correctly#22660 "The other day, I upgraded to 1.5.3 in order to fix an issue with the Category Search function. This latest version of HikaShop (1.5.3) seems to not be handling the Joomla ACL in the same way it did...")*

Indeed, we changed that so that you can have a more fine grained definition of ACLs which was not possible if we were to inherit parent accesses and some users needed to do that.

As you say, you can easily have it working the way it was before by either adding the user to the parent group or adding the sub groups in the ACLs in Hikashop instead of just the main group.

Nevertheless, if you want to quickly go back to the previous behavior, you can edit the file administrator/components/com_hikashop/helpers/helper.php and change the lines:
$userGroups = JAccess::getGroupsByUser($my-&gt;id, false);

by:
$userGroups = JAccess::getGroupsByUser($my-&gt;id, true);

On our end, we'll look at adding an option in the configuration so that you can choose the behavior of the system.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMjY0OS1hY2wtd2l0aC0xLTUtMy1ub3Qtd29ya2luZy1jb3JyZWN0bHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 2 months ago [\#22662](#22662) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: ACL with 1.5.3 not working correctly](/forum/3-bug-report/22649-acl-with-1-5-3-not-working-correctly#22662 "The other day, I upgraded to 1.5.3 in order to fix an issue with the Category Search function. This latest version of HikaShop (1.5.3) seems to not be handling the Joomla ACL in the same way it did...")*

No problem, and I understand why you made the change. I am just happy it wasn't something I screwed up!!!

I will add my users to the parent user group as well, as the main purpose of this site is HikaShop, so I will keep to the paradigm you all are using.

Thanks for the assistance!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMjY0OS1hY2wtd2l0aC0xLTUtMy1ub3Qtd29ya2luZy1jb3JyZWN0bHk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.111 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
