Sha256: f2374afd5988e705d36f3d9d86d76d38594cc5e9bbff62dadc75a914e585d15e
Contents?: true
Size: 387 Bytes
Versions: 39
Compression:
Stored size: 387 Bytes
Contents
class ResourceExportFilePolicy < 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