Method: Cms::Acts::CmsUser::MacroMethods::InstanceMethods#viewable_sections
- Defined in:
- lib/cms/acts/cms_user.rb
#viewable_sections ⇒ Object
Return a list of the sections associated with this user that can be viewed. Overridden from user so that able_to_view? will work correctly.
102 103 104 |
# File 'lib/cms/acts/cms_user.rb', line 102 def viewable_sections @viewable_sections ||= Cms::Section.find(:all, :include => :groups, :conditions => ["#{Cms::Group.table_name}.id in (?)", cms_groups.collect(&:id)]) end |