1
0
mirror of https://github.com/glitch-soc/mastodon.git synced 2025-02-26 12:33:46 -05:00

16 lines
233 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class SettingsPolicy < ApplicationPolicy
def update?
role.can?(:manage_settings)
end
def show?
role.can?(:manage_settings)
end
def destroy?
role.can?(:manage_settings)
end
end