Hiding Extensions

I’m working on some extensions that I’d like to keep the user from
turning off. Is there some way to keep users from disabling (or, better
yet, even seeing) extensions in the admin ui?

It seems like Shards would be a candidate for this too (I’m not sure I
want a user to be able to turn Shards off while leaving my dependent
extensions live).

-Chris

You could duplicate and override the main view layout,
application.rhtml, and remove the “Extensions” link.

Sean

Almost forgot… plain users don’t have access to Extensions, IIRC.
Don’t give them the admin or developer role and you should be fine.

Sean

Sean C. wrote:

Almost forgot… plain users don’t have access to Extensions, IIRC.
Don’t give them the admin or developer role and you should be fine

I’m thinking more from the perspective of hosting a website for a client
where I’ve developed some “core” extensions (core to their site’s
needs). In this case, they would have admin rights (it’s their site)
but turning off these core extensions makes about as much sense as
offering them a checkbox to “disable Radiant.”

I could tell them “just never turn this off if you have admin
privileges” but I’d rather keep the ui clean and un-confusing. So,
there are some extensions that they should be able to enable/disable
(like, say, textile) but others (like shards) that I wouldn’t even want
them to see or have control over disabling.

Currently, the vendor/extensions/my_extension/my_extension.rb file
allows me to declare the extension’s description, version, and url. It
would be nice to be able to add a declaration to tell Radiant “don’t
include this extension in the extensions list at all” – sort of a
developer’s-level extension enabling, if you will.

I was hoping something like this exists already. If not, I’d be happy
to submit a ticket.

-Chris

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs