mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
Change reference to method 'has_role' to 'has_spree_role' in CMS initialiser (required for Spree 1.3)
This commit is contained in:
@@ -108,7 +108,7 @@ end
|
||||
|
||||
module CmsSpreeAuth
|
||||
def authenticate
|
||||
unless current_user && current_user.has_role?('admin')
|
||||
unless current_user && current_user.has_spree_role?('admin')
|
||||
redirect_to spree.login_path
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user