Feature: Job Queues
Also UI style, theme and element changes
This commit is contained in:
@@ -20,6 +20,15 @@ namespace Disco.Services.Authorization.Roles.ClaimGroups.Job
|
||||
[ClaimDetails("Delete Jobs", "Can delete jobs")]
|
||||
public bool Delete { get; set; }
|
||||
|
||||
[ClaimDetails("Add to Own Queues", "Can add to own job queues")]
|
||||
public bool AddOwnQueues { get; set; }
|
||||
[ClaimDetails("Add to Any Queues", "Can add to any job queues")]
|
||||
public bool AddAnyQueues { get; set; }
|
||||
[ClaimDetails("Remove from Own Queues", "Can remove from own job queues")]
|
||||
public bool RemoveOwnQueues { get; set; }
|
||||
[ClaimDetails("Remove from Any Queues", "Can remove from any job queues")]
|
||||
public bool RemoveAnyQueues { get; set; }
|
||||
|
||||
[ClaimDetails("Log Warranty", "Can log warranty for jobs")]
|
||||
public bool LogWarranty { get; set; }
|
||||
[ClaimDetails("Log Repair", "Can log repair for non-warranty jobs")]
|
||||
|
||||
@@ -31,6 +31,9 @@ namespace Disco.Services.Authorization.Roles.ClaimGroups.Job
|
||||
[ClaimDetails("Show Attachments", "Can show job attachments")]
|
||||
public bool ShowAttachments { get; set; }
|
||||
|
||||
[ClaimDetails("Show Jobs Queues", "Can show jobs queues")]
|
||||
public bool ShowJobsQueues { get; set; }
|
||||
|
||||
[ClaimDetails("Show Non-Warranty Components", "Can show non-warranty job components")]
|
||||
public bool ShowNonWarrantyComponents { get; set; }
|
||||
[ClaimDetails("Show Non-Warranty Finance", "Can show non-warranty job finance")]
|
||||
|
||||
@@ -9,6 +9,14 @@ namespace Disco.Services.Authorization.Roles.ClaimGroups.Job
|
||||
[ClaimDetails("Lists", "Permissions related to Job Lists")]
|
||||
public class JobListsClaims : BaseRoleClaimGroup
|
||||
{
|
||||
[ClaimDetails("Job Queue Lists", "Can show job queue lists")]
|
||||
public bool JobQueueLists { get; set; }
|
||||
|
||||
[ClaimDetails("My Jobs List", "Can show list")]
|
||||
public bool MyJobs { get; set; }
|
||||
[ClaimDetails("My Jobs List (Includes No Queue)", "Can show list")]
|
||||
public bool MyJobsOrphaned { get; set; }
|
||||
|
||||
[ClaimDetails("Awaiting Technician Action List", "Can show list")]
|
||||
public bool AwaitingTechnicianAction { get; set; }
|
||||
[ClaimDetails("Long Running Jobs List", "Can show list")]
|
||||
|
||||
@@ -13,10 +13,12 @@ namespace Disco.Services.Authorization.Roles.ClaimGroups.Job
|
||||
{
|
||||
this.WarrantyProperties = new JobWarrantyPropertiesClaims();
|
||||
this.NonWarrantyProperties = new JobNonWarrantyPropertiesClaims();
|
||||
this.JobQueueProperties = new JobQueuePropertiesClaims();
|
||||
}
|
||||
|
||||
public JobWarrantyPropertiesClaims WarrantyProperties { get; set; }
|
||||
public JobNonWarrantyPropertiesClaims NonWarrantyProperties { get; set; }
|
||||
public JobQueuePropertiesClaims JobQueueProperties { get; set; }
|
||||
|
||||
[ClaimDetails("Device Held Property", "Can update property")]
|
||||
public bool DeviceHeld { get; set; }
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Disco.Services.Authorization.Roles.ClaimGroups.Job
|
||||
{
|
||||
[ClaimDetails("Job Queue Properties", "Permissions related to Job Queue Job Properties")]
|
||||
public class JobQueuePropertiesClaims : BaseRoleClaimGroup
|
||||
{
|
||||
[ClaimDetails("Edit Any Comments", "Can edit any job queue comments")]
|
||||
public bool EditAnyComments { get; set; }
|
||||
[ClaimDetails("Edit Own Comments", "Can edit own job queue comments")]
|
||||
public bool EditOwnComments { get; set; }
|
||||
|
||||
[ClaimDetails("Edit Any SLA", "Can edit any job queue SLA")]
|
||||
public bool EditAnySLA { get; set; }
|
||||
[ClaimDetails("Edit Own SLA", "Can edit own job queue SLA")]
|
||||
public bool EditOwnSLA { get; set; }
|
||||
|
||||
[ClaimDetails("Edit Any Priority", "Can edit any job queue Priority")]
|
||||
public bool EditAnyPriority { get; set; }
|
||||
[ClaimDetails("Edit Own Priority", "Can edit own job queue Priority")]
|
||||
public bool EditOwnPriority { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user