From a428d41955884c6d8d1501c7a89e6346ee5ec420 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Mon, 21 Jul 2014 16:29:38 +0200 Subject: [PATCH] Improve readme for better authentication integration --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index a959d44..3c90e97 100644 --- a/README.rdoc +++ b/README.rdoc @@ -56,7 +56,7 @@ Cmtool is looking for an authorize_cmtool method present in the application cont private def authorize_cmtool - redirect_to root_path, alert: t('general.unauthorized'), status: 403 unless current_user.present? && current_user.admin? + redirect_to main_app.root_path, alert: t('general.unauthorized') unless current_user.present? && current_user.is_admin? end end