Created
March 7, 2014 15:14
-
-
Save philipstears/6a70ca0079e3896d2044 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports DriveWorks.Specification | |
<Condition("Is Not Owner", Nothing)> | |
Public Class IsNotOwner | |
Inherits Condition | |
Protected Overrides Function Evaluate(ByVal specificationContext As SpecificationContext) As Boolean | |
Dim currentUser = specificationContext.Group.CurrentUser.Id | |
Dim creator = specificationContext.Group.Specifications.GetSpecification(specificationContext.Id).CreatorId | |
Return currentUser <> creator | |
End Function | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment