gregbell/active_admin — Issue #801: dashboard section :if clause
Author: dup2
Created: 2011-12-01 10:00:40+00:00
State: open

I'm trying to display a section of the dashboard only for a special admin user with the "super_admin" flag enabled.

We're using

```ruby
section("Test", :if => proc{current_admin_user.super_admin?}) do
ul do
Status.recent_updates do |s|
li s.overview
end
end
```
However, the :if option has no effect. The documentation says that ":namespace" and ":if" are valid options, the ":namespace" seems to work (the section is not displayed anymore if I give it a namespace of "Foo")