Skip to content

Commit

Permalink
Small adjustment to role uniqueness check
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Jul 25, 2024
1 parent f123946 commit b944628
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 b944628

Please sign in to comment.