Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

User Groups Tab Rate Topic   - - - - -

 
  • Ghiyas
  • Advanced Member
  • Trial users
  • Join Date: 07-Aug 17
  • 70 posts

Posted 20 November 2017 - 10:16 AM #1

Hi,

 

One of my colleagues has an issue where the "user group" tab disappears until they delete their browser cache. It doesn't happen to me but it seems to be an almost daily issue for her. 

 

It doesn't seem to be a permissions issue because if I log in to her browser, it doesn't appear for me either. If I log into my browser on my pc, it is always there, and if she logs in to my browser, it is always there too.

 

Any ideas why this would keep disappearing? :confused:

 


 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 1,967 posts

Posted 20 November 2017 - 12:30 PM #2

In admin? You have to select "All Suppliers" at top left


When life hands you lemons, bring on the Tequila baby!


 
  • Ghiyas
  • Advanced Member
  • Trial users
  • Join Date: 07-Aug 17
  • 70 posts

Posted 20 November 2017 - 12:46 PM #3

Yes in the admin backend. I don't see an all suppliers button anywhere? 

 

I wouldn't have thought that suppliers would be linked to a user group button. I have checked the privileges for the group my colleague is in and all the privileges for the Users section are ticked



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,742 posts

Posted 20 November 2017 - 01:23 PM #4

Yes in the admin backend. I don't see an all suppliers button anywhere? 

 

I wouldn't have thought that suppliers would be linked to a user group button. I have checked the privileges for the group my colleague is in and all the privileges for the Users section are ticked

 

He meant the All stores mode

 

http://prntscr.com/hcunzc

 

It should be displayed if several store-front are set up in your store


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • Ghiyas
  • Advanced Member
  • Trial users
  • Join Date: 07-Aug 17
  • 70 posts

Posted 20 November 2017 - 01:25 PM #5

I only have the one store



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10,060 posts

Posted 20 November 2017 - 10:25 PM #6

Is it the User Groups tab on a user's profile or the User Groups under the Customers menu that is not showing?

 

They behave differently depending on things like is_root being set to Y for an admin in the cscart_users table. 

 

It might be (for your associate) that this setting is being overwritten in their $_SESSION['auth'] area when the login or act on behalf of another user.  However it should be set properly at login.  Do you have any 3rd party addons that use the 'fill_auth' PHP hook?


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Ghiyas
  • Advanced Member
  • Trial users
  • Join Date: 07-Aug 17
  • 70 posts

Posted 21 November 2017 - 08:45 AM #7

It is the user groups tab in the user profiles, in the admin backend (see https://snag.gy/JTf5Lv.jpg)

This issue happened to me as well yesterday, even if I logged in with the root administrator account.

 

I do have quite a few 3rd part add-ons but I don't think any use that hook. Is there a way I could check?

 

Many thanks!



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10,060 posts

Posted 21 November 2017 - 08:49 PM #8

Not an easy way to check other than to do something like:

find /home/[your account]/public_html/app/addons -type f -print0 | xargs -0 grep 'fn_.*_fill_auth'

 

Generally on that page, that tab ONLY appears for admin accounts in the cscart_users table that have:

user_type='A' and is_root='Y'

 

Is this an MVE site and is the admin a vendor admin or a site admin?


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,742 posts

Posted 22 November 2017 - 07:45 AM #9

 

I do have quite a few 3rd part add-ons but I don't think any use that hook. Is there a way I could check?

 

 

Temporary close the store and try to disable these modules and check


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • Ghiyas
  • Advanced Member
  • Trial users
  • Join Date: 07-Aug 17
  • 70 posts

Posted 22 November 2017 - 08:45 AM #10

Not an easy way to check other than to do something like:

find /home/[your account]/public_html/app/addons -type f -print0 | xargs -0 grep 'fn_.*_fill_auth'

Generally on that page, that tab ONLY appears for admin accounts in the cscart_users table that have:

user_type='A' and is_root='Y'

 

Is this an MVE site and is the admin a vendor admin or a site admin?

 

Really? I thought a normal admin account would have been fine to change user groups for normal customer accounts, and the root admin can change the user groups for administrator accounts?

 

The admin account is a site admin, and no it is not the multi-vendor edition.

 

Would I have to run this as an SQL query?

 

-type f -print0 | xargs -0 grep 'fn_.*_fill_auth'

 

Many thanks!



 
  • Ghiyas
  • Advanced Member
  • Trial users
  • Join Date: 07-Aug 17
  • 70 posts

Posted 29 November 2017 - 09:17 AM #11

Can anyone provide any further advice on this? We are still having this issue on a daily basis  :-(

 

Many thanks!



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10,060 posts

Posted 29 November 2017 - 07:07 PM #12

You are correct in that an admin should be able to adjust the user groups for non-admin accounts and requires is_root=Y to alter admin user groups and/or to edit the usergroups themselves.  My assumption from your post was that this was related to admin accounts.

 

The goal of the shell command I gave you was to identify all addons that use the fill_auth* hooks.  It could be that a 3rd party addon is overriding.  Have no idea why you'd want to try to translate that to a query since there's nothing in the DB that indicates whether an addon uses a hook or not.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Ghiyas
  • Advanced Member
  • Trial users
  • Join Date: 07-Aug 17
  • 70 posts

Posted 29 November 2017 - 08:36 PM #13

You are correct in that an admin should be able to adjust the user groups for non-admin accounts and requires is_root=Y to alter admin user groups and/or to edit the usergroups themselves.  My assumption from your post was that this was related to admin accounts.

 

The goal of the shell command I gave you was to identify all addons that use the fill_auth* hooks.  It could be that a 3rd party addon is overriding.  Have no idea why you'd want to try to translate that to a query since there's nothing in the DB that indicates whether an addon uses a hook or not.

 

Apologies for the ignorance, I'm still learning a lot about website development so I wasn't sure what the command was for. Can you advise where I would need to enter the shell command?

 

Many thanks!



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10,060 posts

Posted 29 November 2017 - 11:13 PM #14

You would have to open an SSH session to your server and then execute the command.  Or you could pass it along to your hosting provider and ask them to execute it for you and give you the results.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.