Task_Descriptors.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Linq;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class CanViewTasks : AutoSecurityDescriptor<Kanban, CanView<Kanban>>
  6. {
  7. public override string Code => GetType().EntityName().Split('.').Last();
  8. }
  9. public class CanViewTaskTypes : AutoSecurityDescriptor<KanbanType, CanView<KanbanType>>
  10. {
  11. public override string Code => GetType().EntityName().Split('.').Last();
  12. }
  13. [Caption("View Tasks for Other Employees")]
  14. public class CanViewOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  15. {
  16. }
  17. [Caption("Close Tasks for Other Employees")]
  18. public class CanCloseOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  19. {
  20. }
  21. [Caption("Change all Task Information for Other Employees")]
  22. public class CanChangeOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  23. {
  24. }
  25. [Caption("Allow Task Completed Column to be Hidden")]
  26. public class CanHideTaskCompletedColumn : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  27. {
  28. }
  29. [Caption("Can Set Task Completed Date")]
  30. public class CanSetKanbanCompletedDate : DisabledSecurityDescriptor<TaskManagementLicense, Kanban>
  31. {
  32. }
  33. }