First of all, congratulations for the book. I have learned a lot with him.
My Problem:
When I navigate into page "ShowAbstracts.aspx" I have a link in bottom of page: "LinkToSubmitNews -> "SubmitNews.aspx"
In the "ShowAbstracts.aspx" code-behind i have:
Code:
If Not (TypeOf Context.User Is SitePrincipal) _
OrElse Not CType(Context.User, SitePrincipal).HasPermission( _
CInt(NewsManagerPermissions.AdministerNews)) _
OrElse Not CType(Context.User, SitePrincipal).HasPermission( _
CInt(NewsManagerPermissions.PublishNews)) _
OrElse Not CType(Context.User, SitePrincipal).HasPermission( _
CInt(NewsManagerPermissions.SubmitNews)) Then
LinkToSubmitNews.Visible = False
End If
BUT, this only work if the current user have all the three permissions!
I've tried tu add a role "PublishNews" and when i navigate into that page, de link is visible-false.
It is enough that it does not have the permission "AdministerNews" for
the link came to visible:False !
What could i do?
Thank you very much!
Max, from Portugal