Skip to content

Commit

Permalink
Merge pull request #3284 from manyfold3d/fix-reports-without-federation
Browse files Browse the repository at this point in the history
Fix report policy in multiuser mode without federation
  • Loading branch information
Floppy authored Dec 9, 2024
2 parents 42e8c3b + 63b78f1 commit d4e41fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion app/policies/federails/moderation/report_policy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Federails::Moderation::ReportPolicy < ApplicationPolicy
def index?
all_of(
SiteSettings.federation_enabled?,
SiteSettings.multiuser_enabled?,
@user.is_moderator?
)
end
Expand Down
4 changes: 0 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d4e41fc

Please sign in to comment.