i have a two folder in my application, so name of the one "Account" and the other "ACP" and i have tow roles administrator and editor.
when the user registered to the site, i want to config the two folder to do not access it, when i choiec the roule administrator or editor after that the user have permission to accesse .
peshangm
Member
73 Points
137 Posts
I want to config the two folder to do not access it
Nov 06, 2012 08:25 PM|LINK
Dear all
i have a two folder in my application, so name of the one "Account" and the other "ACP" and i have tow roles administrator and editor.
when the user registered to the site, i want to config the two folder to do not access it, when i choiec the roule administrator or editor after that the user have permission to accesse .
Account confg
<?xml version="1.0"?> <configuration> <system.web> <authorization> <allow roles="administrator" /> <deny users="?" /> <deny roles="editor" /> </authorization> </system.web> </configuration>ACP config
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <authorization> <deny users="?" /> <allow roles="administrator" /> <allow roles="editor" /> </authorization> </system.web> </configuration>Suly Web For It Solution.
dhol.gaurav
Contributor
3998 Points
725 Posts
Re: I want to config the two folder to do not access it
Nov 07, 2012 03:23 AM|LINK
Hey,
Check following link it may help you
http://msdn.microsoft.com/en-us/library/ff647401.aspx
let me know if any query
Gaurav Dhol
Skype ID : dhol.gaurav
If My Post contains helped you, Please Mark as Answer
peshangm
Member
73 Points
137 Posts
Re: I want to config the two folder to do not access it
Nov 08, 2012 08:30 AM|LINK
Dear all
this issue is solved by set a role "editor" default when the user was registered
thanks.
Suly Web For It Solution.