Commit 973c28a3d5280c5822f68d4dd65ea4e06919a623
1 parent
7e9095ef
Exists in
master
and in
29 other branches
Fixes spread permission
These permissions were mistakenly removed in a merge. Fixes #142
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/my_profile/cms_controller.rb
... | ... | @@ -27,7 +27,7 @@ class CmsController < MyProfileController |
27 | 27 | |
28 | 28 | helper_method :file_types |
29 | 29 | |
30 | - protect_if :except => [:suggest_an_article, :set_home_page, :edit, :destroy, :publish, :upload_files, :new] do |c, user, profile| | |
30 | + protect_if :except => [:suggest_an_article, :set_home_page, :edit, :destroy, :publish, :publish_on_portal_community, :publish_on_communities, :search_communities_to_publish, :upload_files, :new] do |c, user, profile| | |
31 | 31 | user && (user.has_permission?('post_content', profile) || user.has_permission?('publish_content', profile)) |
32 | 32 | end |
33 | 33 | |
... | ... | @@ -288,7 +288,7 @@ class CmsController < MyProfileController |
288 | 288 | task.cancel |
289 | 289 | end |
290 | 290 | if @failed.blank? |
291 | - session[:notice] = _("Your publish request was sent successfully") | |
291 | + session[:notice] = _("You published this content successfully") | |
292 | 292 | if @back_to |
293 | 293 | redirect_to @back_to |
294 | 294 | else | ... | ... |