Interesting little hack.
I am curious, are their plans to do some basic access control stuff?
Thanks!
--
Travis Bell
Not sent from my iPhone.
On 26-Oct-07, at 7:13 AM, John W. Long wrote:
> Hans-Christian Fjeldberg wrote:
>> In your extensions you can specify this by adding:
>>
>> admin.tabs.add "tab name", "/admin/path/to/tab", :visibility
>> => :developer
>>
>> If you also want to change other tabs, you can add this:
>>
>> admin.tabs["tab name"].visibility = [:developer]
>>
>> Or change :developer to :admin, if you only want the admin to be able
>> to change whatever the name of the tab is, for example "Pages".
>
> That will only hide the tabs. It won't prevent people from getting to
> the URL. He might try something like this on the controller in the
> activate method of an extension:
>
> Admin::ControllerName.only_allow_access_to(
> :index, :new, :edit, :remove,
> :when => [:admin],
> :denied_url => { :controller => 'page', :action => 'index' },
> :denied_message => 'You must have admin privileges to perform this
> action.'
> )
>
> --
> John Long
> http://wiseheartdesign.com
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant