diff options
Diffstat (limited to 'app/policies/instance_policy.rb')
-rw-r--r-- | app/policies/instance_policy.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/policies/instance_policy.rb b/app/policies/instance_policy.rb new file mode 100644 index 000000000..d1956e2de --- /dev/null +++ b/app/policies/instance_policy.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class InstancePolicy < ApplicationPolicy + def index? + admin? + end + + def resubscribe? + admin? + end +end |