diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index a50d55cf6..fc1b7c22f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2,7 +2,6 @@ class UsersController < ApplicationController has_filters %w[proposals debates budget_investments comments follows], only: :show load_and_authorize_resource - helper_method :author? helper_method :valid_interests_access? def show @@ -79,10 +78,6 @@ class UsersController < ApplicationController @user.public_interests || authorized_current_user? end - def author?(proposal) - proposal.author_id == current_user.id if current_user - end - def authorized_current_user? @authorized_current_user ||= current_user && (current_user == @user || current_user.moderator? || current_user.administrator?) end