From 63b78f13ac46c80ed16e5d60a9e83af032846fd7 Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 9 Dec 2024 14:11:08 +0000 Subject: [PATCH] fix report policy in multiuser mode without federation --- app/policies/federails/moderation/report_policy.rb | 2 +- config/routes.rb | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/policies/federails/moderation/report_policy.rb b/app/policies/federails/moderation/report_policy.rb index 1787c6dc2..1127ec526 100644 --- a/app/policies/federails/moderation/report_policy.rb +++ b/app/policies/federails/moderation/report_policy.rb @@ -1,7 +1,7 @@ class Federails::Moderation::ReportPolicy < ApplicationPolicy def index? all_of( - SiteSettings.federation_enabled?, + SiteSettings.multiuser_enabled?, @user.is_moderator? ) end diff --git a/config/routes.rb b/config/routes.rb index d605cf8bd..d77edfd1d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,10 +3,6 @@ require "federails" Rails.application.routes.draw do - namespace :settings do - get "reports/index" - get "reports/show" - end get ".well-known/change-password", to: redirect("/users/edit") get "health" => "rails/health#show", :as => :rails_health_check get "problems/index"