Skip to content

Commit

Permalink
wokrflow fix for capital project (#4776)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam-nagar23 committed Mar 12, 2024
1 parent 36398db commit 216379f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/restHandler/app/workflow/AppWorkflowRestHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ func (impl AppWorkflowRestHandlerImpl) FindAppWorkflow(w http.ResponseWriter, r
itr := 0
for _, val := range workflowIdToObjectMap {
rbacObjects = append(rbacObjects, val)
workNameObjectMap[val] = workflowsList[itr]
// doing this here as casbin returns lowercase objects which will not match in case of Project with uppercase letters, not done in enterprise as we use custom enforcer which returns the map with given expected rbac objects
workNameObjectMap[strings.ToLower(val)] = workflowsList[itr]
itr++
}

Expand Down

0 comments on commit 216379f

Please sign in to comment.