Skip to content

Commit 45b870e

Browse files
salzigJoschkaSchulz
authored andcommitted
perf: skip roundtrip via database for organizers predicate
1 parent 99d6a69 commit 45b870e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/user.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def salt
4545
end
4646

4747
def organizer?
48-
self.class.organizers.include? self
48+
Whitelabel[:organizers].include? nickname
4949
end
5050

5151
def update_from_auth!(hash)

0 commit comments

Comments
 (0)