#138 device flag authorization claims
This commit is contained in:
@@ -22,6 +22,7 @@ namespace Disco.Services.Authorization.Roles.ClaimGroups.Configuration
|
||||
DeviceCertificate = new DeviceCertificateClaims();
|
||||
Enrolment = new EnrolmentClaims();
|
||||
DeviceBatch = new DeviceBatchClaims();
|
||||
DeviceFlag = new DeviceFlagClaims();
|
||||
DeviceModel = new DeviceModelClaims();
|
||||
DeviceProfile = new DeviceProfileClaims();
|
||||
DocumentTemplate = new DocumentTemplateClaims();
|
||||
@@ -43,6 +44,8 @@ namespace Disco.Services.Authorization.Roles.ClaimGroups.Configuration
|
||||
|
||||
public DeviceBatchClaims DeviceBatch { get; set; }
|
||||
|
||||
public DeviceFlagClaims DeviceFlag { get; set; }
|
||||
|
||||
public DeviceModelClaims DeviceModel { get; set; }
|
||||
|
||||
public DeviceProfileClaims DeviceProfile { get; set; }
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
namespace Disco.Services.Authorization.Roles.ClaimGroups.Configuration.UserFlag
|
||||
{
|
||||
[ClaimDetails("Device Flags", "Permissions related to Device Flags")]
|
||||
public class DeviceFlagClaims : BaseRoleClaimGroup
|
||||
{
|
||||
[ClaimDetails("Configure Device Flags", "Can configure device flags")]
|
||||
public bool Configure { get; set; }
|
||||
|
||||
[ClaimDetails("Create Device Flags", "Can create device flags")]
|
||||
public bool Create { get; set; }
|
||||
|
||||
[ClaimDetails("Delete Device Flags", "Can delete device flags")]
|
||||
public bool Delete { get; set; }
|
||||
[ClaimDetails("Export Device Flag Assignments", "Can export user device assignments")]
|
||||
public bool Export { get; set; }
|
||||
|
||||
[ClaimDetails("Show Device Flags", "Can show device flags")]
|
||||
public bool Show { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,12 @@
|
||||
|
||||
[ClaimDetails("Generate Documents", "Can generate documents for jobs")]
|
||||
public bool GenerateDocuments { get; set; }
|
||||
[ClaimDetails("Add Device Flags", "Can add device flags")]
|
||||
public bool AddFlags { get; set; }
|
||||
[ClaimDetails("Remove Device Flags", "Can remove device flags")]
|
||||
public bool RemoveFlags { get; set; }
|
||||
[ClaimDetails("Edit Device Flags", "Can edit device flags")]
|
||||
public bool EditFlags { get; set; }
|
||||
|
||||
[ClaimDetails("Enrol Devices", "Can add devices offline and enrol devices with the Bootstrapper")]
|
||||
public bool EnrolDevices { get; set; }
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
public bool ShowJobs { get; set; }
|
||||
[ClaimDetails("Show Assignment History", "Can show the assignment history for devices")]
|
||||
public bool ShowAssignmentHistory { get; set; }
|
||||
|
||||
[ClaimDetails("Show Device Flag Assignments", "Can show flags associated with devices")]
|
||||
public bool ShowFlagAssignments { get; set; }
|
||||
|
||||
public DevicePropertiesClaims Properties { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user