From 274abaf290b0708f8c593637a45a16b24146dfda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 3 Sep 2021 20:16:18 +0200 Subject: [PATCH] Remove unused method in users controller It isn't used since commit fc57bad1c. --- app/controllers/users_controller.rb | 5 ----- 1 file changed, 5 deletions(-) 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