diff --git a/app/policies/dashboard_policy.rb b/app/policies/dashboard_policy.rb deleted file mode 100644 index 13b7f92d15..0000000000 --- a/app/policies/dashboard_policy.rb +++ /dev/null @@ -1,7 +0,0 @@ -class DashboardPolicy < ApplicationPolicy - VIEW_INBOX_ROLES = %w[superadmin policy_and_abuse].freeze - - def can_view_inbox_link? - user_has_roles?(VIEW_INBOX_ROLES) - end -end diff --git a/app/views/users/_sidebar.html.erb b/app/views/users/_sidebar.html.erb index c4c1849531..a6a8a0295d 100644 --- a/app/views/users/_sidebar.html.erb +++ b/app/views/users/_sidebar.html.erb @@ -35,7 +35,7 @@
  • <%= span_if_current t(".pitch.collections", coll_number: @user.maintained_collections.count), user_collections_path(@user) %>
  • -<% if @user == current_user || policy(:dashboard).can_view_inbox_link? %> +<% if @user == current_user || policy(:inbox_comment).show? %>

    <%= t(".landmark.catch") %>