Skip to content

Commit

Permalink
Fix CE in single CAS role case
Browse files Browse the repository at this point in the history
  • Loading branch information
apardyl committed Mar 9, 2019
1 parent 553dfa2 commit a84266c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class CasConfig(
var role = Role.USER

if (casRoleAttribute.isNotBlank() && attrs.containsKey(casRoleAttribute)) {
val groups = attrs[casRoleAttribute] as List<*>
val groups = attrs[casRoleAttribute] as? List<*> ?: listOf(attrs[casRoleAttribute] as? String)
when {
groups.contains(casAdmin) -> role = Role.ADMIN
groups.contains(casMod) -> role = Role.MOD
Expand Down

0 comments on commit a84266c

Please sign in to comment.