Jump to content
Rich

new administrator can't make changes

Recommended Posts

I added a non-superuser administrator to my store. I granted it read/edit/delete permissions to manage categories, products, customers, and orders.

Upon logging in with that user to check it out, I find that it will not allow saving (edit) or deletion for those items!

I really don't want them to be a superuser, so what do I need to do to fix this???

Share this post


Link to post
Share on other sites

Welcome Rich! Glad to see you made it to the forums.

Obviously, that is not supposed to happen. And, in admin, the database is not supposed to be using any cached queries - fresh requests from the database at all times.

Still, if you haven't done so already, make sure that you have had CubeCart clear its internal cache. You might have noticed a lit button at the upper-right corner.

I will make some tests.

Please let us know the exact version of CubeCart you are using.

Share this post


Link to post
Share on other sites
Posted (edited)

My recent test involved changing the permissions to match the above of an existing sub-admin, logging out, then logging in as that sub-admin. Permissions behaved as expected.

In admin, as the sub-admin, visit Maintenance. You should get a red banner warning: "You do not have permission to perform that action."

Log out, then in as the super-admin. Again, visit Maintenance, Database tab. Any warning banners about a table(s) needing repaired? Especially the CubeCart_permissions table?

 

Edited by bsmither

Share this post


Link to post
Share on other sites

As the sub-admin, got the "You do not have permission to perform that action." warning.

As the super-admin, there are no warnings of any kind in the database tab. Ran a "check" on all tables, and all were OK.

Share this post


Link to post
Share on other sites

My next test will involve creating a new sub-admin and assigning permissions at that time, before saving. (I'm checking for the proper sequence of saving the admin details, then saving the permissions matrix.)

In the meantime, use an external database utility to check the contents of CubeCart_permissions. Your hosting account's control panel will have phpMyAdmin available. If on a server you have direct access to, you should have a utility available on your workstation to manage the database server.

Share this post


Link to post
Share on other sites

Used phpMyAdmin to check CubeCart_permissions.  Did check and analyze - both showed OK.

Attached is the contents of the table.

permissions.png

Share this post


Link to post
Share on other sites

It all seems to be working fine (for me) for the newly-added admin with permissions being set at the same time.

 

Share this post


Link to post
Share on other sites
Posted (edited)

For admin #2, you have Categories (3), Customers (5), Documents (4), FileManager (7), Orders (10), and Products (2) as Delete/Edit/Read (7). For Statistics (8), there is only Read (1).

I think I found the problem.

To clarify, the sub-admin can read, and possibly make changes on the form, but there is no Submit button to post those changes? No Delete icon (red trash bin) to delete an item?

If that is the exact case, then, as a work-around, for any sub-admin, do not give just Read permission for any section -- which is dangerous, I know. Since you have just Read permission for Statistics, and there is nothing to delete in Statistics, go ahead and give Delete permission as well for Statistics.

I will verify and post a problem report.

Edited by bsmither

Share this post


Link to post
Share on other sites

Bingo!!!  After checking Edit and Delete for Statistics, everything is working as I expected!!! (a Save button and a delete icon now shows)

Thank you so much!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...