Sha256: e53458f4d4896c43b7848e237938cc907bcd296e2454f83e0ebc8b0cd841a3d1
Contents?: true
Size: 378 Bytes
Versions: 40
Compression:
Stored size: 378 Bytes
Contents
class SubscribePolicy < 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