Skip to content

Commit

Permalink
Add a staff feature group
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed May 28, 2021
1 parent 45159fb commit ed2c897
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/config/initializers/flipper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# We need to add it when initializing because Flipper.register doesn't
# store anything in database.

Flipper.register(:staff) do |user|
user.respond_to?(:is_staff?) && user.is_staff?
end

Flipper.register(:beta) do |user|
user.respond_to?(:in_beta?) && user.in_beta?
end
Expand Down

0 comments on commit ed2c897

Please sign in to comment.