Permissions like, give access only to the teacher of a particular class

Topics: General Topic
Dec 31, 2012 at 6:31 AM

I am a novice to the NetSqlAzman. So far I am liking it a lot.

I have a scenario where the attendance for a class is taken only by the teacher assigned to the class. This information is set in the DB.

To go by the Operation and Rights method, I will have to create an operation for each class and a corresponding task for each of them. As this would be a very lot of records, I do not prefer this way.

Is there an alternative in NetSqlAzman to fulfill this requirement. Is Attributes the right way to tackle it. 

Could you please suggest me a good and neat solution for this.

Thanks and Regards,

Habeeb

Dec 31, 2012 at 5:53 PM

Correct, use attributes.

I have a patch submitted that lets you pick the attributes to assign from your database (using a custom tsql function like you do to pull in the user list) if interested.  Either that you when you build your permissions, you have to lookup your primary key of the class name and attach that to each authorization.

http://netsqlazman.codeplex.com/SourceControl/list/patches