2017-11-12 04:23:33 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InstancePolicy < ApplicationPolicy
|
|
|
|
def index?
|
2022-07-05 09:41:40 +09:00
|
|
|
role.can?(:manage_federation)
|
2017-11-12 04:23:33 +09:00
|
|
|
end
|
|
|
|
|
2019-01-08 21:39:49 +09:00
|
|
|
def show?
|
2022-07-05 09:41:40 +09:00
|
|
|
role.can?(:manage_federation)
|
2017-11-12 04:23:33 +09:00
|
|
|
end
|
2021-12-18 07:01:21 +09:00
|
|
|
|
|
|
|
def destroy?
|
2022-07-05 09:41:40 +09:00
|
|
|
role.can?(:manage_federation)
|
2021-12-18 07:01:21 +09:00
|
|
|
end
|
2017-11-12 04:23:33 +09:00
|
|
|
end
|