Hi, you might try the following in get_column_value (list_column_helper):
elsif column.inplace_edit and controller.respond_to? (:update_authorized?) and controller.send(:update_authorized?) and record.authorized_for?(:action => :update, :column => column.name) -- Volker On Sep 3, 1:44 am, Poco Ritard <[email protected]> wrote: > Is there a recommended way of getting inplace_edit to check the > controller authorization methods? For example, > > class MyController < ApplicationController > layout "admin" > ... > > config.columns[:exclude].inplace_edit = true > > ... > > def update_authorized? > session[:access_permissions].can_update > end > > AFACT it checks the @record authorizations (i.e. I can block it by > adding > > def exclude_authorized_for_update? > ...can't do much here, don't have the sesson :-( > end > > but it never checks the controller method. Suggestions? -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
