mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
24 lines
382 B
Ruby
24 lines
382 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AccountWarningPresetPolicy < ApplicationPolicy
|
|
def index?
|
|
role.can?(:manage_settings)
|
|
end
|
|
|
|
def show?
|
|
role.can?(:manage_settings, :manage_reports, :manage_users)
|
|
end
|
|
|
|
def create?
|
|
role.can?(:manage_settings)
|
|
end
|
|
|
|
def update?
|
|
role.can?(:manage_settings)
|
|
end
|
|
|
|
def destroy?
|
|
role.can?(:manage_settings)
|
|
end
|
|
end
|