Created
August 12, 2011 07:31
-
-
Save pinscript/1141647 to your computer and use it in GitHub Desktop.
This file contains 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
public class OptimizationShowViewModel : RestrictedViewModel { | |
public string AvailableDate { get; set; } | |
public string Type { get; set; } | |
public string DescriptionReciever { get; set; } | |
public string Status { get; set; } | |
public string WaitingUntil { get; set; } | |
public string WaitReason { get; set; } | |
public string Technician { get; set; } | |
public void OptimizationShowViewModel() { | |
RestrictWrite(x => x.AvaiableDate).To(Groups.Admin, Groups.ProjectManagers); | |
RestrictWrite(x => x.Type).To(Groups.Admin, Groups.ProjectManagers); | |
RestrictWrite(x => x.DescriptionReciever).To(Groups.Admin, Groups.ProjectManagers); | |
RestrictWrite(x => x.Status).To(Groups.Admin, Groups.Technicans); | |
RestrictWrite(x => x.WaitingUntil).To(Groups.Admin, Groups.Technicans); | |
RestrictWrite(x => x.WaitReason).To(Groups.Admin, Groups.Technicans); | |
RestrictWrite(x => x.Technician).To(Groups.Admin, Groups.Technicans); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment