diff --git a/Disco.Services/Authorization/Claims.cs b/Disco.Services/Authorization/Claims.cs index 6ec2fc3c..529f5800 100644 --- a/Disco.Services/Authorization/Claims.cs +++ b/Disco.Services/Authorization/Claims.cs @@ -49,9 +49,9 @@ namespace Disco.Services.Authorization { "Config.DocumentTemplate.ConfigureFilterExpression", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.ConfigureFilterExpression, (c, v) => c.Config.DocumentTemplate.ConfigureFilterExpression = v, "Configure Filter Expression", "Can configure filter expressions for document templates", false) }, { "Config.DocumentTemplate.Create", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.Create, (c, v) => c.Config.DocumentTemplate.Create = v, "Create Document Templates", "Can create document templates", false) }, { "Config.DocumentTemplate.Delete", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.Delete, (c, v) => c.Config.DocumentTemplate.Delete = v, "Delete Document Templates", "Can delete document templates", false) }, + { "Config.DocumentTemplate.UndetectedPages", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.UndetectedPages, (c, v) => c.Config.DocumentTemplate.UndetectedPages = v, "Process Undetected Pages", "Can show and assign imported documents which were not undetected", false) }, { "Config.DocumentTemplate.ShowStatus", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.ShowStatus, (c, v) => c.Config.DocumentTemplate.ShowStatus = v, "Show Document Template Import Status", "Can show the document template import status", false) }, { "Config.DocumentTemplate.Show", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.Show, (c, v) => c.Config.DocumentTemplate.Show = v, "Show Document Templates", "Can show document templates", false) }, - { "Config.DocumentTemplate.UndetectedPages", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.UndetectedPages, (c, v) => c.Config.DocumentTemplate.UndetectedPages = v, "Undetected Pages", "Can show and assign imported documents which were not undetected", false) }, { "Config.DocumentTemplate.Upload", new Tuple, Action, string, string, bool>(c => c.Config.DocumentTemplate.Upload, (c, v) => c.Config.DocumentTemplate.Upload = v, "Upload Document Templates", "Can upload document templates", false) }, { "Config.Logging.Show", new Tuple, Action, string, string, bool>(c => c.Config.Logging.Show, (c, v) => c.Config.Logging.Show = v, "Show Logging", "Can show logging", false) }, { "Config.Plugin.Configure", new Tuple, Action, string, string, bool>(c => c.Config.Plugin.Configure, (c, v) => c.Config.Plugin.Configure = v, "Configure Plugins", "Can configure plugins", false) }, @@ -237,9 +237,9 @@ namespace Disco.Services.Authorization new ClaimNavigatorItem("Config.DocumentTemplate.ConfigureFilterExpression", false), new ClaimNavigatorItem("Config.DocumentTemplate.Create", false), new ClaimNavigatorItem("Config.DocumentTemplate.Delete", false), + new ClaimNavigatorItem("Config.DocumentTemplate.UndetectedPages", false), new ClaimNavigatorItem("Config.DocumentTemplate.ShowStatus", false), new ClaimNavigatorItem("Config.DocumentTemplate.Show", false), - new ClaimNavigatorItem("Config.DocumentTemplate.UndetectedPages", false), new ClaimNavigatorItem("Config.DocumentTemplate.Upload", false) }), new ClaimNavigatorItem("Config.Enrolment", "Enrolment", "Permissions related to Device Enrolment", false, new List() { @@ -521,9 +521,9 @@ namespace Disco.Services.Authorization c.Config.DocumentTemplate.ConfigureFilterExpression = true; c.Config.DocumentTemplate.Create = true; c.Config.DocumentTemplate.Delete = true; + c.Config.DocumentTemplate.UndetectedPages = true; c.Config.DocumentTemplate.ShowStatus = true; c.Config.DocumentTemplate.Show = true; - c.Config.DocumentTemplate.UndetectedPages = true; c.Config.DocumentTemplate.Upload = true; c.Config.Logging.Show = true; c.Config.Plugin.Configure = true; @@ -855,6 +855,11 @@ namespace Disco.Services.Authorization /// public const string Delete = "Config.DocumentTemplate.Delete"; + /// Process Undetected Pages + /// Can show and assign imported documents which were not undetected + /// + public const string UndetectedPages = "Config.DocumentTemplate.UndetectedPages"; + /// Show Document Template Import Status /// Can show the document template import status /// @@ -865,11 +870,6 @@ namespace Disco.Services.Authorization /// public const string Show = "Config.DocumentTemplate.Show"; - /// Undetected Pages - /// Can show and assign imported documents which were not undetected - /// - public const string UndetectedPages = "Config.DocumentTemplate.UndetectedPages"; - /// Upload Document Templates /// Can upload document templates /// diff --git a/Disco.Services/Authorization/Roles/ClaimGroups/Configuration/DocumentTemplate/DocumentTemplateClaims.cs b/Disco.Services/Authorization/Roles/ClaimGroups/Configuration/DocumentTemplate/DocumentTemplateClaims.cs index adf977a0..a5cc4f6a 100644 --- a/Disco.Services/Authorization/Roles/ClaimGroups/Configuration/DocumentTemplate/DocumentTemplateClaims.cs +++ b/Disco.Services/Authorization/Roles/ClaimGroups/Configuration/DocumentTemplate/DocumentTemplateClaims.cs @@ -33,7 +33,7 @@ namespace Disco.Services.Authorization.Roles.ClaimGroups.Configuration.DocumentT [ClaimDetails("Bulk Generate Document Templates", "Can bulk generate document templates")] public bool BulkGenerate { get; set; } - [ClaimDetails("Undetected Pages", "Can show and assign imported documents which were not undetected")] + [ClaimDetails("Process Undetected Pages", "Can show and assign imported documents which were not undetected")] public bool UndetectedPages { get; set; } } }