Sha256: 9c9b843bc797d19e75bbc9e28fe282d40017dd4c6f9a988af10d6ce33e03537f
Contents?: true
Size: 338 Bytes
Versions: 2
Compression:
Stored size: 338 Bytes
Contents
# frozen_string_literal: true class PagePolicy < Policy def index? true end def calendar? index? end def deleted? index? end def new? user.role?(:pages) end def show? true end def edit? user.role?(:pages) end def move? edit? end def delete_meta_image? edit? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.12.1 | app/policies/page_policy.rb |
pages_core-3.12.0 | app/policies/page_policy.rb |