|
|
|
|
|
|
|
|
|
|
|
This article applies to:
MultiStore
Restricting admin users to certain tasks in MultiStore (custom admin permissions)
|
|
Synopsis:
It may be beneficial for some stores to restrict certain admin menus for specific admin users. This can be accomplished for the MultiStore per the instructions below.
NOTE: For ML8 editions, follow the instructions in this KB Article.
Procedure:
Following these instructions can effectively limit the menus available to specific Admin Users:
- Go to {root}/admin/controls folder and duplicate the files: AdminMenu.ascx and AdminMenu.ascx.cs adding a 2 for the new name:
- Open the new files and change these lines accordingly:
AdminMenu2.ascx :
AdminMenu2.ascx.cs :
- In your AdminMenu2.ascx.cs , comment out the appropriate lines below (e.g. Orders, Products, etc.) if you want to hide certain top level menus to Admin Users, using a double forward slash //
- To hide specific sub-menus underneath the main menus, follow this procedure:
a) Go to the GetChildMenuItems(MenuItem Parent) method and comment out the desired lines, using a forward slash and asterisk /* and close with an asterisk forward slash */
For example, if you wish to lockout the Recurring Orders Submenu:
- Once your modifications are saved, in the Admin Console go to Customers -> View/Edit Customers and Users, then select the Admin User you wish to apply these restrictions to. In the “Notes” field on the customer profile frame, specify the AdminMenu2.ascx file and “Update Customer”.
- Reset Cache in the Admin Console.
Now your Admin User will no longer have the restricted menus available. Note that they can still access the restricted functions by explicitly calling up the page URL, which can come in handy if you require someone to access a normally restricted function.
You can create as many Admin Menus as you wish, but are required to create them sequentially, starting with AdminMenu2, then AdminMenu3 and so on.
|
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|