an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 6/16/2009 3:17:28 PM By Bahram. 2 replies.
1/26/2009 12:04:04 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
SuperAdmin
 
Hi,
 
Is there a way to assign some admin functions to some users.
i.e. a SuperAdmin can define other admins with restrictions Like only can update/Add Products.
 
Bahram 
1/26/2009 1:58:26 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: SuperAdmin
Yes, here is how you would do it.
1) create a role for the users who needs restricted access to site admin
2) edit web\web.sitemap to add access to the pages for the role that you created. Say the role created is called ProductAdmin
<siteMapNode url="/Admin/Catalog/Products.aspx" title="$resources:Common,Products" useSSL="false" allowedRoles="Administrator,ProductAdmin" helplink="Online%20Help/Product%20Management/Managing%20Products.aspx">
3) edit web\admin\web.config to grant access to the pages for the roles that you created.
4) assign the role to the users who need access.
 
DotShoppingCart Staff
6/16/2009 3:17:28 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: SuperAdmin
<font color="#0000ff" size="2"><font color="#0000ff" size="2">

I want to let a user view and edit Orders, lets name the role  Order Management , How can i add the code Web.sitmap : including current code :

  Current Code

<siteMapNode title="$resources:Common,Order">

<siteMapNode url="/Admin/Order/Orders.aspx" title="$resources:Common,Orders" helplink="Online%20Help/Order%20Processing/Reviewing%20and%20Authorizing%20Orders.aspx">

<siteMapNode url="/Admin/Order/OrderEdit.aspx" title="$resources:Common,EditOrder" helplink="Online%20Help/Order%20Processing/Reviewing%20and%20Authorizing%20Orders/51.aspx"></siteMapNode>

<siteMapNode url="/Admin/Order/OrderItemEdit.aspx" title="$resources:Common,EditOrderItem" helplink="Online%20Help/Order%20Processing/Reviewing%20and%20Authorizing%20Orders/51.aspx"></siteMapNode>

Your suggested Code

<siteMapNode url="/Admin/Order/Orders.aspx" title="$resources:Common,Orders" useSSL="false" allowedRoles="Administrator,Order Management" helplink="Online%20Help/Order%20Processing/Reviewing%20and%20Authorizing%20Orders.aspx"></siteMapNode>

<siteMapNode url="/Admin/Order/OrderEdit.aspx" title="$resources:Common,EditOrder" useSSL="false" allowedRoles="Administrator,Order Management" helplink="Online%20Help/Order%20Processing/Reviewing%20and%20Authorizing%20Orders/51.aspx"></siteMapNode>

</ siteMapNode>