mirror of
https://github.com/mastodon/mastodon.git
synced 2026-04-26 10:06:15 -05:00
20 lines
320 B
Ruby
20 lines
320 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::CollectionPolicy < ApplicationPolicy
|
|
def index?
|
|
role.can?(:manage_reports, :manage_users)
|
|
end
|
|
|
|
def show?
|
|
role.can?(:manage_reports, :manage_users)
|
|
end
|
|
|
|
def destroy?
|
|
role.can?(:manage_reports)
|
|
end
|
|
|
|
def update?
|
|
role.can?(:manage_reports)
|
|
end
|
|
end
|