From f2305c51a7a06b27f3e21072a2f02cb8968793b4 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 20 Aug 2014 20:46:53 -0300 Subject: [PATCH] Tell the user his community creation will be moderated --- app/controllers/my_profile/memberships_controller.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/app/controllers/my_profile/memberships_controller.rb b/app/controllers/my_profile/memberships_controller.rb index 56263b1..c7af2db 100644 --- a/app/controllers/my_profile/memberships_controller.rb +++ b/app/controllers/my_profile/memberships_controller.rb @@ -21,6 +21,9 @@ class MembershipsController < MyProfileController @back_to = params[:back_to] || url_for(:action => 'index') if request.post? && @community.valid? @community = Community.create_after_moderation(user, params[:community].merge({:environment => environment})) + if @community.new_record? + session[:notice] = _('Your new community creation request will be evaluated by an administrator. You will be notified.') + end redirect_to @back_to return end -- libgit2 0.21.2