From b944628842a486ecf5463ca1781bb345bb0e7a31 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Thu, 25 Jul 2024 11:25:35 -0400 Subject: [PATCH] Small adjustment to role uniqueness check --- 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