Sha256: ee0ab95466d5997cafc973dde645f97a79077f34224803faf159f6cbc09c2f02
Contents?: true
Size: 384 Bytes
Versions: 39
Compression:
Stored size: 384 Bytes
Contents
class AgentImportFilePolicy < ApplicationPolicy def index? true if user.try(:has_role?, 'Librarian') end def show? true if user.try(:has_role?, 'Librarian') end def create? true if user.try(:has_role?, 'Librarian') end def update? true if user.try(:has_role?, 'Librarian') end def destroy? true if user.try(:has_role?, 'Librarian') end end
Version data entries
39 entries across 38 versions & 2 rubygems