Sha256: 8139a35382c5e66c73c3670579c73a1ab3ba060c0d673e52e212192260ac1adb
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
module Cms module UsersService module GuestUserModule def guest? true end def readonly? true end def cms_access? false end def groups @groups ||= Cms::Group.guest_groups.includes(:permissions) end def group groups.first end def able_to_edit?(_section) false end #You shouldn't be able to save a guest user (but do not fail, as in original BrowserCMS) def update_attribute(_name, _value) false end def update_attributes(_attrs = {}) false end def save(_perform_validation = true) false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browsercms-artirix-4.0.1.1 | lib/cms/users_service/guest_user_module.rb |