Override Staff::PassportPolicy#index?
This commit is contained in:
parent
921bf5d471
commit
0e97d7ab23
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Staff::PassportPolicy < ApplicationPolicy
|
||||
def index?
|
||||
account&.is_superuser?
|
||||
end
|
||||
|
||||
def show?
|
||||
true
|
||||
end
|
||||
|
|
Reference in a new issue