Hide create-enterprise-group button from non-admins

Only admin users can create groups. The button was still displayed for
users that owned a group.

Unused HTML attributes were removed from that button as well.
This commit is contained in:
Maikel Linke
2016-03-04 14:24:24 +11:00
parent 6300f87987
commit 28e2d4041f

View File

@@ -1,9 +1,9 @@
= content_for :page_title do
Enterprise Groups
= content_for :page_actions do
%li#new_enterprise_group_link
= button_link_to "New Enterprise Group", main_app.new_admin_enterprise_group_path, :icon => 'add', :id => 'admin_new_enterprise_group_link'
- if admin_user?
= content_for :page_actions do
%li= button_link_to "New Enterprise Group", main_app.new_admin_enterprise_group_path
%table.index#listing_enterprise_groups
%thead