Browse Source

only admins can see checkins

eperez-timeinput
Jason Denney 12 years ago
parent
commit
854c8efaa9
  1. 3
      app/components/app_tab_panel.rb

3
app/components/app_tab_panel.rb

@ -48,13 +48,12 @@ class AppTabPanel < Netzke::Basepack::TabPanel
title: "Users/Transactions"}]
end
if can? :manage, ::ActsAsLoggable::Log.all
@@app_tab_panel_items.concat [:logs]
@@app_tab_panel_items.concat [:logs, :check_ins]
end
if can? :manage, Role
@@app_tab_panel_items.concat [{ layout: :fit,
wrappedComponent: :user_role_joins,
title: "User Roles"},
:check_ins
]
end

Loading…
Cancel
Save