Sha256: 0145b6d14b4b0897293773b48454c53e9cea58c4b304f56cb0f42b9ca37097fa
Contents?: true
Size: 344 Bytes
Versions: 19
Compression:
Stored size: 344 Bytes
Contents
class EventImportFilePolicy < ApplicationPolicy def index? user.try(:has_role?, 'Librarian') end def show? user.try(:has_role?, 'Librarian') end def create? user.try(:has_role?, 'Librarian') end def update? user.try(:has_role?, 'Librarian') end def destroy? user.try(:has_role?, 'Librarian') end end
Version data entries
19 entries across 19 versions & 1 rubygems