diff --git a/app/models/role.rb b/app/models/role.rb index c270bb1499..ed6df213da 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -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