app/controllers/comable/admin/application_controller.rb in comable_backend-0.4.1 vs app/controllers/comable/admin/application_controller.rb in comable_backend-0.4.2
- old
+ new
@@ -37,10 +37,10 @@
redirect_to comable.new_admin_user_session_path
end
end
def after_access_denied_path
- if current_comable_user.user?
+ if current_comable_user.customer?
comable.root_path
else
comable.admin_root_path
end
end