The add account link is now hidden unless admins have permission.

This commit is contained in:
Mario Visic 2011-08-20 17:41:00 +08:00
parent 8a5241f265
commit 22445856ec

View File

@ -3,10 +3,11 @@
- content_for :submenu do
= render_cell 'admin/settings_menu', :show
- if can?(:manage, @site)
- content_for :buttons do
- content_for :buttons do
- if can?(:manage, @site)
= admin_button_tag :export, new_admin_export_url, :class => 'new'
= admin_button_tag :import, new_admin_import_url, :class => 'new'
- if can?(:create, Account)
= admin_button_tag t('.new_membership'), new_admin_membership_url, :class => 'new'
%p!= t('.help')