using System.Linq; using InABox.Core; namespace Comal.Classes { [Caption("Configure Task Panel")] public class CanConfigureTasksPanel : EnabledSecurityDescriptor { } public class CanViewTasks : AutoSecurityDescriptor> { public override string Code => GetType().EntityName().Split('.').Last(); } public class CanViewTaskTypes : AutoSecurityDescriptor> { public override string Code => GetType().EntityName().Split('.').Last(); } [Caption("View Tasks for Other Employees")] public class CanViewOthersTasks : EnabledSecurityDescriptor { } [Caption("Close Tasks for Other Employees")] public class CanCloseOthersTasks : EnabledSecurityDescriptor { } [Caption("Change all Task Information for Other Employees")] public class CanChangeOthersTasks : EnabledSecurityDescriptor { } [Caption("Allow Task Completed Column to be Hidden")] public class CanHideTaskCompletedColumn : EnabledSecurityDescriptor { } [Caption("Can Set Task Completed Date")] public class CanSetKanbanCompletedDate : DisabledSecurityDescriptor { } [Caption("Can Share Task Details With Others")] public class CanShareTaskDetails : DisabledSecurityDescriptor { } }