Skip to content

Commit

Permalink
fix #1079
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Jan 31, 2020
1 parent 5a1b117 commit 2406a8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ canBeTakenBy: aBpmUser

self hasPerformers ifFalse: [^aBpmUser includesAnyRoleOf: (Array with: role) in: process bpmEnvironment]. "if there is no performers --> the <BpmUser> is has to be included in the receiver role"

^(self getNextRoleIfNone: []) isGranted: aBpmUser "there are perfomers --> if the next perfomer role includes <aBpmUser> --> is granted"
"#rolesIn: includes inherit roles from user groups. see #1079"
"there are perfomers --> if the next perfomer role includes <aBpmUser> --> is granted"
^(aBpmUser rolesIn: self bpmEnvironment) includesIdentical: (self getNextRoleIfNone: [])
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"bpmEnvironment" : "brunobb 09/07/2018 11:12",
"bpmEnvironmentName" : "brunobb 09/07/2018 11:12",
"bpmEnvironmentName:" : "brunobb 09/07/2018 11:12",
"canBeTakenBy:" : "brunobb 01/28/2020 07:49",
"canBeTakenBy:" : "brunobb 01/31/2020 10:20",
"canUnassign" : "brunobb 09/07/2018 11:12",
"canUnassign:" : "brunobb 09/07/2018 11:12",
"canUntakeFromCurrentUser" : "brunobb 09/07/2018 11:12",
Expand Down
Loading

0 comments on commit 2406a8c

Please sign in to comment.