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