Permalink
Browse files

fix to detreed group-chooser

  • Loading branch information...
1 parent 5da9c97 commit ac01900ba715d8324bcbc97dd1e617aa3e103b41 @will-r will-r committed Nov 22, 2011
@@ -9,7 +9,7 @@ def show
end
def load_models
- self.models = paginated? ? model_class.roots.paginate(pagination_parameters) : model_class.roots.all
+ self.models = paginated? ? model_class.paginate(pagination_parameters) : model_class.all
end
def load_model
@@ -1,7 +1,6 @@
class Admin::ReadersController < Admin::ResourceController
helper :reader
paginate_models
- before_filter :redirect_to_user, :only => :edit
only_allow_access_to :new, :create, :edit, :update, :remove, :destroy, :settings,
:when => :admin,
@@ -18,12 +17,4 @@ def create
private
- def redirect_to_user
- if model.is_user?
- redirect_to edit_admin_user_url(model.user)
- return false
- end
- true
- end
-
end
@@ -1,14 +1,11 @@
- chooser ||= @page
- if chooser
- - root ||= nil
- disabled ||= false
- - branches = root ? root.children : Group.roots
- %ul{:class => root ? '' : 'tree'}
- - branches.each do |group|
+ %ul
+ - Group.all.each do |group|
%li
- checked = chooser.has_group?(group)
- = check_box_tag 'group_ids', group.id, checked, :id => "group_ids_#{group.id}", :class => "treebox", :disabled => disabled
+ = check_box_tag 'group_ids', group.id, checked, :id => "group_ids_#{group.id}", :disabled => disabled
%label{:for => "group_ids_#{group.id}", :class => 'checkbox'}
= group.name
- = render :partial => 'admin/groups/chooser', :object => chooser, :locals => {:root => group, :disabled => checked}
@@ -1,5 +1,5 @@
module RadiantReaderExtension
- VERSION = '3.0.35'
+ VERSION = '3.0.36'
SUMMARY = %q{Reader/viewer/visitor registration, login and access-control for Radiant CMS}
DESCRIPTION = %q{Provides reader/member/user registration and management functions including password-reminder, group-based page access control and administrative email.}
URL = "http://radiant.spanner.org/reader"

0 comments on commit ac01900

Please sign in to comment.