Sha256: 4ff0752274c797c6594ac538325de4e7ccce3089dd4f99ba736673b006ff6000
Contents?: true
Size: 391 Bytes
Versions: 40
Compression:
Stored size: 391 Bytes
Contents
class BudgetTypePolicy < 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?, 'Administrator') end def update? true if user.try(:has_role?, 'Administrator') end def destroy? true if user.try(:has_role?, 'Administrator') end end
Version data entries
40 entries across 38 versions & 2 rubygems