File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/controllers/scim_rails Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ def create
3333 if ScimRails . config . scim_group_prevent_update_on_create
3434 group = @company . public_send ( ScimRails . config . scim_groups_scope ) . create! ( group_attributes )
3535 else
36- username_key = ScimRails . config . queryable_group_attributes [ :userName ]
37- find_by_username = { }
38- find_by_username [ username_key ] = group_attributes [ username_key ]
36+ display_name_key = ScimRails . config . queryable_group_attributes [ :displayName ]
37+ find_by_display_name = { }
38+ find_by_display_name [ display_name_key ] = group_attributes [ display_name_key ]
3939 group = @company
4040 . public_send ( ScimRails . config . scim_groups_scope )
41- . find_or_create_by ( find_by_username )
41+ . find_or_create_by ( find_by_display_name )
4242 group . update! ( group_attributes )
4343 end
4444
You can’t perform that action at this time.
0 commit comments