On Wed, Sep 8, 2010 at 8:09 PM, Jim Gay <j...@saturnflyer.com> wrote:
> On Wed, Sep 8, 2010 at 7:59 PM, john muhl <johnm...@gmail.com> 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.

Reply via email to