File tree 3 files changed +7
-7
lines changed
app/overrides/spree/admin/users/edit
views/backend/spree/admin/shared
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
original "904c52ff702412d1dc8d55ff44d87d7f581f6675"
4
4
-->
5
5
6
- <% if @user != try_spree_current_user %>
6
+ <% if @user != spree_current_user %>
7
7
< fieldset class ="no-border-bottom " data-hook ="admin_user_reset_password ">
8
8
< legend > <%= t ( :'spree.forgot_password' ) %> </ legend >
9
9
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def self.redirect_back_on_unauthorized?
48
48
49
49
def self . prepare_backend
50
50
Spree ::Admin ::BaseController . unauthorized_redirect = -> do
51
- if try_spree_current_user
51
+ if spree_current_user
52
52
flash [ :error ] = I18n . t ( 'spree.authorization_failure' )
53
53
54
54
if Spree ::Auth ::Engine . redirect_back_on_unauthorized?
@@ -71,7 +71,7 @@ def self.prepare_backend
71
71
72
72
def self . prepare_frontend
73
73
Spree ::BaseController . unauthorized_redirect = -> do
74
- if try_spree_current_user
74
+ if spree_current_user
75
75
flash [ :error ] = I18n . t ( 'spree.authorization_failure' )
76
76
77
77
if Spree ::Auth ::Engine . redirect_back_on_unauthorized?
Original file line number Diff line number Diff line change 1
1
<% if spree_current_user %>
2
2
<ul id ="login-nav " class ="admin-login-nav ">
3
3
< li data-hook ="user-account-link ">
4
- <% if can? ( :admin , try_spree_current_user ) %>
5
- <%= link_to spree . edit_admin_user_path ( try_spree_current_user ) do %>
4
+ <% if can? ( :admin , spree_current_user ) %>
5
+ <%= link_to spree . edit_admin_user_path ( spree_current_user ) do %>
6
6
< i class ='fa fa-user '> </ i >
7
- <%= try_spree_current_user . email %>
7
+ <%= spree_current_user . email %>
8
8
<% end %>
9
9
<% else %>
10
10
< a >
11
11
< i class ='fa fa-user '> </ i >
12
- <%= try_spree_current_user . email %>
12
+ <%= spree_current_user . email %>
13
13
</ a >
14
14
<% end %>
15
15
</ li >
You can’t perform that action at this time.
0 commit comments