mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +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