#3: Hide the internal links to groups and users if the appropriate permissions are not present

This commit is contained in:
Andy Heathershaw 2017-04-15 10:50:22 +01:00
parent 8473eb4a05
commit aa8089f75c
2 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,9 @@
</div>
<div class="pull-right" style="margin-top: 10px;">
<a href="{{ route('users.index') }}" class="btn btn-link">@lang('admin.list_users_title')</a>
@can('admin:manage-users')
<a href="{{ route('users.index') }}" class="btn btn-link">@lang('admin.list_users_title')</a>
@endcan
<a href="{{ route('groups.create') }}" class="btn btn-success"><i class="fa fa-fw fa-plus"></i> @lang('admin.create_group')</a>
</div>
@endif

View File

@ -42,7 +42,9 @@
</div>
<div class="pull-right" style="margin-top: 10px;">
<a href="{{ route('groups.index') }}" class="btn btn-link">@lang('admin.list_groups_title')</a>
@can('admin:manage-groups')
<a href="{{ route('groups.index') }}" class="btn btn-link">@lang('admin.list_groups_title')</a>
@endcan
<a href="{{ route('users.create') }}" class="btn btn-success"><i class="fa fa-fw fa-plus"></i> @lang('admin.create_user')</a>
</div>
</div>