# Hiding Extensions

**URL:** <https://www.ruby-forum.com/t/hiding-extensions/124557>\
**Category:** Radiant CMS\
**Created:** [December 30, 2007, 7:57am UTC](https://www.ruby-forum.com/t/hiding-extensions/124557 "2007-12-30T07:57:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [December 30, 2007, 7:57am UTC](https://www.ruby-forum.com/t/hiding-extensions/124557/1 "2007-12-30T07:57:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [December 30, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/hiding-extensions/124557/2 "2007-12-30T19:21:13Z")

</div>

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

Sean

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [December 30, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/hiding-extensions/124557/3 "2007-12-30T19:21:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [December 30, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/hiding-extensions/124557/4 "2007-12-30T19:42:22Z")

</div>

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
