Skip to content

Commit

Permalink
dcoraboeuf#282 Add a project promoter role
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Nov 18, 2013
1 parent 8628790 commit d8ae748
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public enum ProjectFunction {
// Delete build
BUILD_DELETE,
// Create promoted run
PROMOTED_RUN_CREATE(EnumSet.of(ProjectRole.OWNER), ImmutableSet.of(SecurityRoles.CONTROLLER)),
PROMOTED_RUN_CREATE(EnumSet.of(ProjectRole.OWNER, ProjectRole.PROMOTER), ImmutableSet.of(SecurityRoles.CONTROLLER)),
// Delete promoted run
PROMOTED_RUN_DELETE,
PROMOTED_RUN_DELETE(EnumSet.of(ProjectRole.OWNER, ProjectRole.PROMOTER)),
// Create validation run
VALIDATION_RUN_CREATE(EnumSet.of(ProjectRole.OWNER), ImmutableSet.of(SecurityRoles.CONTROLLER)),
// Delete validation run
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package net.ontrack.core.security;

/**
* Labels for roles are in <code>model.ls</code> and add also a <code>projectRole-*.png</code> in the images.
*/
public enum ProjectRole {

OWNER,

VALIDATION_MANAGER
VALIDATION_MANAGER,

PROMOTER

}
4 changes: 4 additions & 0 deletions ontrack-core/src/main/resources/META-INF/strings/model.ls
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,7 @@ projectRole.OWNER
projectRole.VALIDATION_MANAGER
en -> Validation manager
fr -> Gestionnaire des validations

projectRole.PROMOTER
en -> Promoter
fr -> Promoteur
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8ae748

Please sign in to comment.