diff --git a/controllers/email_article_plugin_myprofile_controller.rb b/controllers/email_article_plugin_myprofile_controller.rb index 55b5fcd..0929d83 100644 --- a/controllers/email_article_plugin_myprofile_controller.rb +++ b/controllers/email_article_plugin_myprofile_controller.rb @@ -6,7 +6,9 @@ class EmailArticlePluginMyprofileController < MyProfileController if user.is_admin?(profile) article = Article.find(params[:id]) EmailArticlePluginMyprofileController::Sender.deliver_mail(article) - render :text=>'ok' + render :action => 'success' + else + render :action => 'fail' end end -- libgit2 0.21.2