diff --git a/app/controllers/profile_admin/cms_controller.rb b/app/controllers/profile_admin/cms_controller.rb index 01ed23e..fe349a2 100644 --- a/app/controllers/profile_admin/cms_controller.rb +++ b/app/controllers/profile_admin/cms_controller.rb @@ -1,9 +1,15 @@ class CmsController < ComatoseAdminController extend PermissionCheck - + ApplicationController.needs_profile define_option :page_class, Article -# protect [:edit, :new, :reorder, :delete], :post_content, :profile + protect [:edit, :new, :reorder, :delete], 'post_content', :profile + + protected + + def profile + Profile.find_by_identifier(params[:profile]) + end end -- libgit2 0.21.2