Skip to content

Commit 3fca044

Browse files
committed
Update rolesDefinition parameter type in getRolePermissions to Map for immutability
1 parent de293d7 commit 3fca044

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/cosmotech/common/rbac

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/cosmotech/common/rbac/CsmRbac.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ open class CsmRbac(
270270

271271
internal fun getRolePermissions(
272272
role: String?,
273-
rolesDefinition: MutableMap<String, List<String>>,
273+
rolesDefinition: Map<String, List<String>>,
274274
): List<String> {
275275
return rolesDefinition[role] ?: listOf()
276276
}

0 commit comments

Comments
 (0)