Hid create organization button from non-superadmin users.
This commit is contained in:
parent
32a6d69851
commit
e3b83e8ec1
1 changed files with 3 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.page-header
|
.page-header
|
||||||
%h1 Organizations
|
%h1 Organizations
|
||||||
|
- if can? :manage, :all
|
||||||
.btn-group.pull-right
|
.btn-group.pull-right
|
||||||
= link_to 'Create Organization', new_admin_organization_path, class: 'btn btn-success pull-right'
|
= link_to 'Create Organization', new_admin_organization_path, class: 'btn btn-success pull-right'
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue