Skip to content

Commit 765cf12

Browse files
authored
Merge pull request #151 from joyofrails/patch/flipper-user-registration
Update Flipper flag for user_registration
2 parents 35d0f70 + 9669372 commit 765cf12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/controllers/users/confirmations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ def update
6161
private
6262

6363
def feature_enabled!
64-
redirect_to root_path, notice: "Coming soon!" unless Flipper.enabled?(:user_registration)
64+
redirect_to root_path, notice: "Coming soon!" unless Flipper.enabled?(:user_registration, current_admin_user)
6565
end
6666
end

app/controllers/users/passwords_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ def password_params
6565
end
6666

6767
def feature_enabled!
68-
redirect_to root_path, notice: "Coming soon!" unless Flipper.enabled?(:user_registration)
68+
redirect_to root_path, notice: "Coming soon!" unless Flipper.enabled?(:user_registration, current_admin_user)
6969
end
7070
end

app/controllers/users/registrations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ def destroy
5959
private
6060

6161
def feature_enabled!
62-
redirect_to root_path, notice: "Coming soon!" unless Flipper.enabled?(:user_registration)
62+
redirect_to root_path, notice: "Coming soon!" unless Flipper.enabled?(:user_registration, current_admin_user)
6363
end
6464
end

0 commit comments

Comments
 (0)