Skip to content

Commit

Permalink
Small adjustment to role uniqueness check (#5896)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Jul 25, 2024
1 parent f123946 commit 71b8e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def set_role_color
"##{SecureRandom.hex(3)}"
end

raise if Role.exists?(color:) # Ensure uniqueness
raise if Role.exists?(color:, provider:) # Ensure uniqueness

self.color = color
rescue StandardError
Expand Down

0 comments on commit 71b8e9b

Please sign in to comment.