1
0
Fork 0

Override Staff::PassportPolicy#index?

This commit is contained in:
Alex Kotov 2019-03-27 10:39:11 +05:00
parent 921bf5d471
commit 0e97d7ab23
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -1,6 +1,10 @@
# frozen_string_literal: true
class Staff::PassportPolicy < ApplicationPolicy
def index?
account&.is_superuser?
end
def show?
true
end