Sha256: 326c374d5cbcdd72c02f628d041daa3fecaa487e163a93099a160afaafd63a46
Contents?: true
Size: 296 Bytes
Versions: 3
Compression:
Stored size: 296 Bytes
Contents
class PageFilePolicy < Policy module Collection def index? true end def reorder? user.role?(:pages) end def new? user.role?(:pages) end end module Member def show? true end def edit? user.role?(:pages) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.4.3 | app/policies/page_file_policy.rb |
pages_core-3.5.1 | app/policies/page_file_policy.rb |
pages_core-3.4.2 | app/policies/page_file_policy.rb |