an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > I need to create new roles under admin role and...
Last Post 5/1/2009 9:56:27 PM By lukezy. 25 replies.
Page 3 of 3 (26 posts) << First < Prev 1 2 3 Next > Last >> 
4/30/2009 1:12:43 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: I need to create new roles under admin role and assign permissions accordingly
Ah, web.config is already in admin folder. So you don't need "admin" in the path. I updated web.config as follows. You can change it to apply to other folder or pages.
 
 <location path="Default.aspx">
  <system.web>
   <authorization>
    <allow roles="Administrator,ProductAdmin" />
   </authorization>
  </system.web>
 </location>
 <location path="Catalog">
  <system.web>
   <authorization>
    <allow roles="Administrator,ProductAdmin" />
   </authorization>
  </system.web>
 </location>
 
DotShoppingCart Staff
4/30/2009 1:16:48 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: I need to create new roles under admin role and assign permissions accordingly
cool. That works. Thanks
4/30/2009 2:16:13 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: I need to create new roles under admin role and assign permissions accordingly
Hi Luke,
 
Now please Make all your codes in one thread in reply to my original thread.
 
I also suggest that DSC implement the whole solution ( I have proposed and posted it before)  in next version.
 
It is very essential to have at least three  user types : Superuser (Admin), product managers, store/account users.
 
 
Bahram
5/1/2009 11:17:42 AM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: I need to create new roles under admin role and assign permissions accordingly
Hi Luke,
 
I ran into another problem with the product admin role. The user is not allowed to uploaded images for the product. It takes him to the login screen when he tries to upload images.
 
Any suggesstions?
 
Thanks
5/1/2009 9:56:27 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: I need to create new roles under admin role and assign permissions accordingly
You just need to grant permission to Controls folder.
 
<location path="Controls">
  <system.web>
   <authorization>
    <allow roles="Administrator,ProductAdmin" />
   </authorization>
  </system.web>
</location>
 
DotShoppingCart Staff
Page 3 of 3 (26 posts) << First < Prev 1 2 3 Next > Last >>