public dtoCallItemPermission(long id, liteCommunity community, CallStatusForSubmitters status, dtoCall callForPaper)
     : base(id, community, status)
 {
     Call       = callForPaper;
     Deleted    = callForPaper.Deleted;
     Permission = new dtoCallPermission();
 }
Beispiel #2
0
 public dtoCallItemPermission(long id, liteCommunity community, CallStatusForSubmitters status, dtoSubmissionDisplayInfo subInfo, dtoCall call)
     : this(id, community, status, call)
 {
     SubmissionsInfo.Add(subInfo);
 }
Beispiel #3
0
 public dtoCallItemPermission(long id, liteCommunity community, CallStatusForSubmitters status, dtoCall callForPaper, ModuleCallForPaper module, litePerson person)
     : this(id, community, status, callForPaper)
 {
     Permission.Delete           = false;
     Permission.VirtualDelete    = (Deleted == BaseStatusDeleted.None) && (module.ManageCallForPapers || module.Administration || (module.DeleteOwnCallForPaper && callForPaper.Owner.Id == person.Id));
     Permission.UnDelete         = (Deleted != BaseStatusDeleted.None) && (module.ManageCallForPapers || module.Administration || (module.EditCallForPaper && callForPaper.Owner.Id == person.Id));
     Permission.Edit             = (Deleted == BaseStatusDeleted.None) && (module.ManageCallForPapers || module.Administration || (module.EditCallForPaper && callForPaper.Owner.Id == person.Id));
     Permission.ManageComittees  = (Deleted == BaseStatusDeleted.None) && (module.ManageCallForPapers || module.Administration);
     Permission.ManageEvaluation = (Deleted == BaseStatusDeleted.None) && (module.ManageCallForPapers || module.Administration);
     Permission.ViewSubmissions  = (Deleted == BaseStatusDeleted.None) && (Call.Status != CallForPaperStatus.Draft) && (module.ManageCallForPapers || module.Administration || (module.EditCallForPaper && callForPaper.Owner.Id == person.Id));
 }