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

#   ACL or workaround for backend access

##

- **[hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")**
- [![hawkestfs's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1255-hawkestfs "View hawkestfs's Profile") Topic Author
- [ Offline](/forum/user/1255-hawkestfs)

Less More

- Posts: 3
- Thank you received: 0
-
-

15 years 8 months ago [\#8962](#8962) by [hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")  *[ACL or workaround for backend access](/forum/4-how-to/8962-acl-or-workaround-for-backend-access#8962 "Hi,  I am aware from some other posts I read that ACL(1.6) for backend access control is a future development.  In the meantime I was wondering if anyone had any work arounds to hide access to the confuration section so that I can allow Administrator class users to edit products etc but only allow superuser class to access the configuration?  Is there a piece of PHP code I could add to the views to only show if the user is a superuser?  Suggestions anyone?  Thanks,  Ben")* was created by *[hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")*

Hi,

I am aware from some other posts I read that ACL(1.6) for backend access control is a future development.

In the meantime I was wondering if anyone had any work arounds to hide access to the confuration section so that I can allow Administrator class users to edit products etc but only allow superuser class to access the configuration?

Is there a piece of PHP code I could add to the views to only show if the user is a superuser?

Suggestions anyone?

Thanks,

Ben

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg5NjItYWNsLW9yLXdvcmthcm91bmQtZm9yLWJhY2tlbmQtYWNjZXNzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 8 months ago [\#8968](#8968) 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 or workaround for backend access](/forum/4-how-to/8962-acl-or-workaround-for-backend-access#8968 "Hi,  I am aware from some other posts I read that ACL(1.6) for backend access control is a future development.  In the meantime I was wondering if anyone had any work arounds to hide access to the confuration section so that I can allow Administrator class users to edit products etc but only allow superuser class to access the configuration?  Is there a piece of PHP code I could add to the views to only show if the user is a superuser?  Suggestions anyone?  Thanks,  Ben")*

You could edit the file config of the view config via the menu Display-&gt;Views. There add a check like that:
$user =&amp; JFactory::getUser();
if($user-&gt;gid==25){ // that's only for joomla 1.5
// only for super admin
}

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

- **[hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")**
- [![hawkestfs's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1255-hawkestfs "View hawkestfs's Profile") Topic Author
- [ Offline](/forum/user/1255-hawkestfs)

Less More

- Posts: 3
- Thank you received: 0
-
-

15 years 8 months ago [\#9010](#9010) by [hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")  Replied by *[hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")* on topic *[Re: ACL or workaround for backend access](/forum/4-how-to/8962-acl-or-workaround-for-backend-access#9010 "Hi,  I am aware from some other posts I read that ACL(1.6) for backend access control is a future development.  In the meantime I was wondering if anyone had any work arounds to hide access to the confuration section so that I can allow Administrator class users to edit products etc but only allow superuser class to access the configuration?  Is there a piece of PHP code I could add to the views to only show if the user is a superuser?  Suggestions anyone?  Thanks,  Ben")*

I'm using Joomla 1.6 - will this still work?

Thanks for the quick reply btw.

Ben

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg5NjItYWNsLW9yLXdvcmthcm91bmQtZm9yLWJhY2tlbmQtYWNjZXNzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 8 months ago [\#9033](#9033) 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 or workaround for backend access](/forum/4-how-to/8962-acl-or-workaround-for-backend-access#9033 "Hi,  I am aware from some other posts I read that ACL(1.6) for backend access control is a future development.  In the meantime I was wondering if anyone had any work arounds to hide access to the confuration section so that I can allow Administrator class users to edit products etc but only allow superuser class to access the configuration?  Is there a piece of PHP code I could add to the views to only show if the user is a superuser?  Suggestions anyone?  Thanks,  Ben")*

For 1.6:
$user =&amp; JFactory::getUser();
jimport('joomla.access.access');
$userGroups = JAccess::getGroupsByUser($user-&gt;id, true);
if(in_array(8,$userGroups)){ // that's only for joomla 1.6 and supposing that you didn't change the groups too much
// only for super admin
}

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

- **[hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")**
- [![hawkestfs's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1255-hawkestfs "View hawkestfs's Profile") Topic Author
- [ Offline](/forum/user/1255-hawkestfs)

Less More

- Posts: 3
- Thank you received: 0
-
-

15 years 8 months ago [\#9087](#9087) by [hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")  Replied by *[hawkestfs](/forum/user/1255-hawkestfs "View hawkestfs's Profile")* on topic *[Re: ACL or workaround for backend access](/forum/4-how-to/8962-acl-or-workaround-for-backend-access#9087 "Hi,  I am aware from some other posts I read that ACL(1.6) for backend access control is a future development.  In the meantime I was wondering if anyone had any work arounds to hide access to the confuration section so that I can allow Administrator class users to edit products etc but only allow superuser class to access the configuration?  Is there a piece of PHP code I could add to the views to only show if the user is a superuser?  Suggestions anyone?  Thanks,  Ben")*

Thanks that's great.

Are the save and and apply buttons going to do any thing or can I ignore those?

Cheers,

Ben

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg5NjItYWNsLW9yLXdvcmthcm91bmQtZm9yLWJhY2tlbmQtYWNjZXNzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 8 months ago [\#9094](#9094) 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 or workaround for backend access](/forum/4-how-to/8962-acl-or-workaround-for-backend-access#9094 "Hi,  I am aware from some other posts I read that ACL(1.6) for backend access control is a future development.  In the meantime I was wondering if anyone had any work arounds to hide access to the confuration section so that I can allow Administrator class users to edit products etc but only allow superuser class to access the configuration?  Is there a piece of PHP code I could add to the views to only show if the user is a superuser?  Suggestions anyone?  Thanks,  Ben")*

They won't work. You can ignore them

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg5NjItYWNsLW9yLXdvcmthcm91bmQtZm9yLWJhY2tlbmQtYWNjZXNzP3RtcGw9bWFya2Rvd24=) 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.049 seconds

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