Skip to content

Commit 6f79710

Browse files
committed
Allow session access for current admin user
1 parent 208bebf commit 6f79710

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/controllers/users/sessions_controller.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def fail
4545
private
4646

4747
def feature_enabled!
48-
redirect_to root_path, notice: "Coming soon!" unless Flipper[:user_registration].enabled?
48+
unless Flipper.enabled?(:user_registration, current_admin_user)
49+
redirect_to root_path,
50+
notice: "Coming soon!"
51+
end
4952
end
5053
end

0 commit comments

Comments
 (0)