How to deal with Edit permissions.

Topics: Web Client Software Factory, User Forum
May 16, 2008 at 8:08 AM
I understand rules such as this is like read permission:

<

rule Url="~/Admin/Default.aspx" Rule="AllowAdminSite" />

But how to deal with edit permission.
For example we load a usercontrol and we would like to give edit permission to a certain role, how to achieve this.
Thanks.

 

May 19, 2008 at 5:27 PM
You may check if the user has the required role to enable the control:

CustomerDetails.Enabled = User.IsInRole(“EditCustomer”);

And to check rules, see this topic: Determining Whether a User is Authorized to Perform a Task

Please, let me know if it helps.

Jonathan Cisneros
http://staff.southworks.net/blogs/jcisneros