From 71b8e9b662a326b9a2a3b97cc8500bd28033e229 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Thu, 25 Jul 2024 13:19:02 -0400 Subject: [PATCH] Small adjustment to role uniqueness check (#5896) --- app/models/role.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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