![]() |
Manage users |
Post Reply
|
| Author | |
john123
Newbie
Joined: 09-January-2008 Location: Canada Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Manage usersPosted: 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 |
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
john123
Newbie
Joined: 09-January-2008 Location: Canada Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
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%> |
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
Posted: 30-October-2009 at 5:29am |
|
Hi John,
I forgot to say, the V4 admin menus are very different, but similar principles apply. |
|
![]() |
|
john123
Newbie
Joined: 09-January-2008 Location: Canada Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |