ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Manage users
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Manage users

 Post Reply Post Reply
Author
Message
john123 View Drop Down
Newbie
Newbie


Joined: 09-January-2008
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote john123 Quote  Post ReplyReply Direct Link To This Post Topic: Manage users
    Posted: 29-October-2009 at 9:22pm
Hi,

I want to be able to restrict a user to one of the pages within a submenu.  Is this possible?  

For example to hide or restrict the "View Sales reports" under the Reports menu.

John

Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 29-October-2009 at 9:51pm
Hi John,
  Indeed it is, although it will involve mods to the code if your requirement doesn't square with the default user groups,  take a look at :
http://wiki.earlyimpact.com/productcart/settings-manage-users
In addition, if you want to manipulate the menu items displayed to users with different permissions so that it varies from the default set then you can customize (in V3) pcadmin/setdropdownmenu.asp . (Hopefully you renamed the pcadmin folder)

Back to Top
john123 View Drop Down
Newbie
Newbie


Joined: 09-January-2008
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote john123 Quote  Post ReplyReply Direct Link To This Post Posted: 29-October-2009 at 11:27pm
Hi Hamish,

Thanks for the reply.

So I can make the change but it would require a customization?  I see the code number is "10" for reports but I would need to have logic in the code to allow only the one page within reports to be hidden.  Is this what you mean?

John

Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 30-October-2009 at 5:27am
Hi John,
    Yes, that's correct.
If you wrap an additional "if / end if" around the item(s) that you want to hide from people with access to reports and set a different access authority for it you can make those items only display when the person also has the other authority as well. 

<%if (instr(session("PmAdmin"),"10*")>0) or (session("admin")=0) or (session("PmAdmin")="19") then%>

Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 30-October-2009 at 5:29am
Hi John,
   I forgot to say, the V4 admin menus are very different, but similar principles apply.
Back to Top
john123 View Drop Down
Newbie
Newbie


Joined: 09-January-2008
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote john123 Quote  Post ReplyReply Direct Link To This Post Posted: 30-October-2009 at 9:40am
Hi Hamish,

Thanks for the reply.

I guess this is a change I can do myself or do I need to get a programmer? 

I have a stupid question...

Is this condition you mentioned above going in the "View Sales Reports" page so that a person can have access to the "Reports" menu but specifically not the "View Sales Reports"?  If so, what page would I need to modify?

Note: I will be updating to version 4 but I just want to get my requirements in place first.

John



Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 30-October-2009 at 9:45am
Hi John,
  You can have a try yourself, or ask a programmer - it's a quick change.
ALWAYS ALWAYS make sure you have a backup of the original file(s).

Ideally you should also change the pmadmin value at the top of the report that you are restricting, however, as it will not be shown in the menu, unless they know the page name and manually set the page url they will not be able to access it anyway.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.070 seconds.