Skip to content

Commit

Permalink
Add prioritize task permission (#887)
Browse files Browse the repository at this point in the history
* Add prioritize task permission

* Rename PrioritizeTask -> TaskPrioritize
  • Loading branch information
tothegills authored Nov 7, 2024
1 parent db9dfe2 commit f20447c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4388,6 +4388,7 @@ Octopus.Client.Model
static Octopus.Client.Model.Permission TaskCancel
static Octopus.Client.Model.Permission TaskCreate
static Octopus.Client.Model.Permission TaskEdit
static Octopus.Client.Model.Permission TaskPrioritize
static Octopus.Client.Model.Permission TaskView
static Octopus.Client.Model.Permission TaskViewLog
static Octopus.Client.Model.Permission TeamCreate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4408,6 +4408,7 @@ Octopus.Client.Model
static Octopus.Client.Model.Permission TaskCancel
static Octopus.Client.Model.Permission TaskCreate
static Octopus.Client.Model.Permission TaskEdit
static Octopus.Client.Model.Permission TaskPrioritize
static Octopus.Client.Model.Permission TaskView
static Octopus.Client.Model.Permission TaskViewLog
static Octopus.Client.Model.Permission TeamCreate
Expand Down
1 change: 1 addition & 0 deletions source/Octopus.Server.Client/Model/Permission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public class Permission : IEquatable<Permission>

[Description("Edit server tasks")] [SupportsRestriction(PermissionScope.Projects, PermissionScope.Environments, PermissionScope.Tenants)] public static readonly Permission TaskEdit = new Permission("TaskEdit");

[Description("Create deployments that are prioritized")] public static readonly Permission TaskPrioritize = new("TaskPrioritize");

[Description("View interruptions generated during deployments")] [SupportsRestriction(PermissionScope.Projects, PermissionScope.Environments, PermissionScope.Tenants, ExplicitTenantScopeRequired = true)] public static readonly Permission InterruptionView = new Permission("InterruptionView");

Expand Down

0 comments on commit f20447c

Please sign in to comment.