How Every User manage his privacy ?

Aug 12, 2009 at 6:02 AM

Hi Andrea,

I have Question ,

we have a list of users and every user have a content (files,images,....) we need every user to manage his privacy

like that

user X1 say :

 X2 can  view only my content 

X3 can  view and delete  my content

how i impmemnt this logic with Netsqlazman

Regards,

Ahmed

Coordinator
Aug 12, 2009 at 6:07 AM

Hi,

yes … using Attributes on User Authorization.

I.e.:

“Allow” to user “U1” on Role “R1” è Attributes è Add è Attribute Key: “Action”, Attribute value: “delete my content”.

At run time the CheckAccess method return “Allow” and a List<KeyValuePair<string, string>> of all user authorizations attributes.

The final authorization is the logical AND between the “CheckAccess resulted AuthorizationType” AND your attribute checking.

Regards,

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator  
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com

Aug 12, 2009 at 6:53 AM

Thank you for your fast reply