# Restrict Access to Tabs in Admin UI

**URL:** <https://www.ruby-forum.com/t/restrict-access-to-tabs-in-admin-ui/155902>\
**Category:** Radiant CMS\
**Created:** [December 18, 2008, 2:05am UTC](https://www.ruby-forum.com/t/restrict-access-to-tabs-in-admin-ui/155902 "2008-12-18T02:05:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toddq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@toddq](https://www.ruby-forum.com/u/toddq)\
**Post date:** [December 18, 2008, 2:05am UTC](https://www.ruby-forum.com/t/restrict-access-to-tabs-in-admin-ui/155902/1 "2008-12-18T02:05:40Z")

</div>

Is there any way to restrict access to the tabs that are displayed in  
the admin UI? For example, I installed the paperclipped extension, which  
adds the “Assets” tab, and I’d like to restrict that tab to a handful of  
users, or better yet to a group set up using the page group permissions  
extension.

Thanks.

---

<div class="post-metadata">

**Author:** ![toddq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@toddq](https://www.ruby-forum.com/u/toddq)\
**Post date:** [December 19, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/restrict-access-to-tabs-in-admin-ui/155902/2 "2008-12-19T15:38:02Z")

</div>

Todd Mcgregor wrote:

> Is there any way to restrict access to the tabs that are displayed in  
> the admin UI? For example, I installed the paperclipped extension, which  
> adds the “Assets” tab, and I’d like to restrict that tab to a handful of  
> users, or better yet to a group set up using the page group permissions  
> extension.
> 
> Thanks.

I looked at a few extensions I installed and there is an easy way to  
restrict a tab to the admin role. Here’s how the page\_group\_permissions  
extension does it:

admin.tabs.add “Groups”, “/admin/groups”, :after =\> “Layouts”,  
:visibility =\> [:admin]

This code goes in the activate method of the extension. I’d still like  
to know how to restrict access by group.
