Re: [Radiant] restricting tab visibility in 0.9
On Wed, Sep 8, 2010 at 8:09 PM, Jim Gay wrote: > On Wed, Sep 8, 2010 at 7:59 PM, john muhl 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 thanks. i figured i had to be just overlooking it. > 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. makes sense.
Re: [Radiant] restricting tab visibility in 0.9
On Wed, Sep 8, 2010 at 7:59 PM, john muhl 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