diff --git a/app/controllers/myprofile/cms_controller.rb b/app/controllers/myprofile/cms_controller.rb index 3ee52f1..bba3127 100644 --- a/app/controllers/myprofile/cms_controller.rb +++ b/app/controllers/myprofile/cms_controller.rb @@ -1,4 +1,4 @@ -class CmsController < ProfileAdminController +class CmsController < MyProfileController define_option :page_class, Article diff --git a/app/controllers/myprofile/enterprise_editor_controller.rb b/app/controllers/myprofile/enterprise_editor_controller.rb index d568d9a..aa7febb 100644 --- a/app/controllers/myprofile/enterprise_editor_controller.rb +++ b/app/controllers/myprofile/enterprise_editor_controller.rb @@ -1,4 +1,4 @@ -class EnterpriseEditorController < ProfileAdminController +class EnterpriseEditorController < MyProfileController protect 'edit_profile', :profile, :user, :except => :destroy protect 'destroy_profile', :profile, :only => :destroy diff --git a/app/controllers/myprofile/enterprise_validation_controller.rb b/app/controllers/myprofile/enterprise_validation_controller.rb index e543c55..c30698a 100644 --- a/app/controllers/myprofile/enterprise_validation_controller.rb +++ b/app/controllers/myprofile/enterprise_validation_controller.rb @@ -1,4 +1,4 @@ -class EnterpriseValidationController < ProfileAdminController +class EnterpriseValidationController < MyProfileController def index @pending_validations = profile.pending_validations diff --git a/app/controllers/myprofile/membership_editor_controller.rb b/app/controllers/myprofile/membership_editor_controller.rb index da527b4..985fed2 100644 --- a/app/controllers/myprofile/membership_editor_controller.rb +++ b/app/controllers/myprofile/membership_editor_controller.rb @@ -1,4 +1,4 @@ -class MembershipEditorController < ProfileAdminController +class MembershipEditorController < MyProfileController before_filter :login_required diff --git a/app/controllers/myprofile/profile_editor_controller.rb b/app/controllers/myprofile/profile_editor_controller.rb index bf4d02c..53ff0ee 100644 --- a/app/controllers/myprofile/profile_editor_controller.rb +++ b/app/controllers/myprofile/profile_editor_controller.rb @@ -1,4 +1,4 @@ -class ProfileEditorController < ProfileAdminController +class ProfileEditorController < MyProfileController #protect 'edit_profile', :profile, only => [:index, :edit] diff --git a/app/controllers/myprofile/profile_members_controller.rb b/app/controllers/myprofile/profile_members_controller.rb index d277c32..5e9afec 100644 --- a/app/controllers/myprofile/profile_members_controller.rb +++ b/app/controllers/myprofile/profile_members_controller.rb @@ -1,4 +1,4 @@ -class ProfileMembersController < ProfileAdminController +class ProfileMembersController < MyProfileController protect 'manage_memberships', :profile def index -- libgit2 0.21.2