Sha256: 26d2b919fcea8c38d55a1dda8fb08f665362f5911b184a56e2a38a091b697ca6
Contents?: true
Size: 365 Bytes
Versions: 29
Compression:
Stored size: 365 Bytes
Contents
class UserGroupHasCheckoutTypePolicy < ApplicationPolicy def index? user.try(:has_role?, 'Librarian') end def show? user.try(:has_role?, 'Librarian') end def create? user.try(:has_role?, 'Administrator') end def update? user.try(:has_role?, 'Administrator') end def destroy? user.try(:has_role?, 'Administrator') end end
Version data entries
29 entries across 29 versions & 1 rubygems