Skip to content

Instantly share code, notes, and snippets.

@pinscript
Created August 12, 2011 07:31
Show Gist options
  • Save pinscript/1141647 to your computer and use it in GitHub Desktop.
Save pinscript/1141647 to your computer and use it in GitHub Desktop.
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