Sha256: 098c430c24870dbde36c1fb826b4f8587d2f7cc469d1aa01e12b08c5ad44bb0c
Contents?: true
Size: 377 Bytes
Versions: 40
Compression:
Stored size: 377 Bytes
Contents
class WithdrawPolicy < 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
40 entries across 38 versions & 2 rubygems