On Wed, Sep 8, 2010 at 7:59 PM, john muhl <[email protected]> wrote: > i'm upgrading an extension from 0.8 to 0.9 and can't seem to find a > replacement for `:visibility => [:admin]` using the new tab method. is > there any? >
It's done in your controller now. For example http://github.com/radiant/radiant/blob/master/app/controllers/admin/layouts_controller.rb#L3 Often in the past, extension developers would set the visibility of a tab, but not restrict access. Now, you just restrict access in the controller and the links will appear based upon your access. -- Jim Gay Saturn Flyer LLC http://www.saturnflyer.com 571-403-0338
