[SOLVED] Setting permissions for 'Products' module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
oct4th
Forum Members
Forum Members
Posts: 28
Joined: Wed May 21, 2008 6:33 pm

[SOLVED] Setting permissions for 'Products' module

Post by oct4th »

Hiya.

I've installed the Products module, and it's working greeeat, the only issue I seem to be having is setting up the user permissions. Calguy states setting up the 'modify products' permission in order for users to edit the products only, but I'm having trouble getting this to work.

I currently have a group similar to 'editor' with a few added permissions. When clicking the 'modify products' permission, users in this group still cannot access the module (it simply doesn't show up in their admin panel). But if I add either the 'modify templates' or 'modify site prefs' - as suggested in the docs - then the users can add/remove products, but then they also get their hands on other things I don't want them seeing.

Is this an issue anyone else has had, or have I boned up some other permissions somewhere?

Thanks!!

c
Last edited by oct4th on Wed Jul 30, 2008 11:03 pm, edited 1 time in total.
User avatar
oct4th
Forum Members
Forum Members
Posts: 28
Joined: Wed May 21, 2008 6:33 pm

Re: [SOLVED] Setting permissions for 'Products' module

Post by oct4th »

Solved my own problem:

In the Products module Products.module.php file the function VisibleToAdminUser() currently looks like so:

  function VisibleToAdminUser()
  {
return $this->CheckPermission('Modify Cart') ||
  $this->CheckPermission('Modify Templates') ||
  $this->CheckPermission('Modify Site Preferences');
   }


Changing the word 'Cart' to 'Products' seems to fix the permissions issues I was having.

return $this->CheckPermission('Modify Products')

This is a bug, yeah?!

c
Last edited by oct4th on Wed Jul 30, 2008 11:04 pm, edited 1 time in total.
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: [SOLVED] Setting permissions for 'Products' module

Post by Deblus »

thanks for the tip
User avatar
oct4th
Forum Members
Forum Members
Posts: 28
Joined: Wed May 21, 2008 6:33 pm

Re: [SOLVED] Setting permissions for 'Products' module

Post by oct4th »

And now that I was going to post a bug, I see it's already been posted  ;D

http://dev.cmsmadesimple.org/tracker/index.php?func=detail&aid=2367&group_id=408&atid=1563

C
Post Reply

Return to “Modules/Add-Ons”