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
[SOLVED] Setting permissions for 'Products' module
[SOLVED] Setting permissions for 'Products' module
Last edited by oct4th on Wed Jul 30, 2008 11:03 pm, edited 1 time in total.
Re: [SOLVED] Setting permissions for 'Products' module
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
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.
Re: [SOLVED] Setting permissions for 'Products' module
thanks for the tip
Re: [SOLVED] Setting permissions for 'Products' module
And now that I was going to post a bug, I see it's already been posted 
http://dev.cmsmadesimple.org/tracker/index.php?func=detail&aid=2367&group_id=408&atid=1563
C

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