questions about the project tracker sample in the bookquestions about the project tracker sample in the book
Old forum URL: forums.lhotka.net/forums/t/1382.aspx
yipchunyu posted on Tuesday, October 03, 2006
I still learning from the book "Expert VB 2005 Business object".
Now, I am trying to build a similar project discussed in the book. However, I don't understand one point.
In my project, i want different users can view/edit their own projects (only those they created but not others). So, what's the correct strating point for me to add these logic?
ajj3085 replied on Wednesday, October 04, 2006
I would override AddAuthorizationRules to add instance authorization rules.
yipchunyu replied on Wednesday, October 04, 2006
ajj3085: I would override AddAuthorizationRules to add instance authorization rules.
so, u mean sth like this section?
Public Shared Function CanDeleteObject() As Boolean
Dim result As Boolean
If Csla.ApplicationContext.User.IsInRole("DocumentAuthor") Then
result = True
End If
If Csla.ApplicationContext.User.IsInRole("Administrator") Then
result = True
End If
Return result
End Function
or should I add logic in the "ProjectList" and add logic in setting the criteria? any sample for this? thx a lot
Copyright (c) Marimer LLC