From ea6c58ed76724055172b89539a3888f00532a350 Mon Sep 17 00:00:00 2001 From: Ben Rexin Date: Mon, 4 Nov 2024 18:29:33 +0100 Subject: [PATCH] perf: skip roundtrip via database for organizers predicate --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index f003c352..940cc8c3 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -45,7 +45,7 @@ def salt end def organizer? - self.class.organizers.include? self + Whitelabel[:organizers].include? nickname end def update_from_auth!(hash)