Skip to content

Commit

Permalink
[NAE-2016] Global roles for menu items permissions
Browse files Browse the repository at this point in the history
- collectRolesForPreferenceItem
  • Loading branch information
machacjozef committed Nov 19, 2024
1 parent f00373e commit fb32b02
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ class ActionDelegate {

}

private void updateMenuItemRoles(Case item, Closure cl, String roleFieldId) {
void updateMenuItemRoles(Case item, Closure cl, String roleFieldId) {
item = workflowService.findOne(item.stringId)
def roles = cl()
def dataField = item.dataSet[roleFieldId]
Expand Down Expand Up @@ -2495,7 +2495,7 @@ class ActionDelegate {
return findMenuItem(uri, name)
}

private Map<String, I18nString> collectRolesForPreferenceItem(List<ProcessRole> roles) {
Map<String, I18nString> collectRolesForPreferenceItem(List<ProcessRole> roles) {
return roles.collectEntries { role ->
if (role.isGlobal()) {
return [(role.importId + ":" + GLOBAL_ROLE), ("$role.name (🌍 Global role)" as String)]
Expand All @@ -2506,7 +2506,7 @@ class ActionDelegate {
} as Map<String, I18nString>
}

private Map<String, I18nString> collectRolesForPreferenceItem(Map<String, String> roles) {
Map<String, I18nString> collectRolesForPreferenceItem(Map<String, String> roles) {
Map<String, PetriNet> temp = [:]
return roles.collectEntries { entry ->
if (entry.value.equals(GLOBAL_ROLE)) {
Expand Down

0 comments on commit fb32b02

Please sign in to comment.