#3: Hide the internal links to groups and users if the appropriate permissions are not present
This commit is contained in:
parent
8473eb4a05
commit
aa8089f75c
@ -46,7 +46,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pull-right" style="margin-top: 10px;">
|
<div class="pull-right" style="margin-top: 10px;">
|
||||||
|
@can('admin:manage-users')
|
||||||
<a href="{{ route('users.index') }}" class="btn btn-link">@lang('admin.list_users_title')</a>
|
<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>
|
<a href="{{ route('groups.create') }}" class="btn btn-success"><i class="fa fa-fw fa-plus"></i> @lang('admin.create_group')</a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -42,7 +42,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pull-right" style="margin-top: 10px;">
|
<div class="pull-right" style="margin-top: 10px;">
|
||||||
|
@can('admin:manage-groups')
|
||||||
<a href="{{ route('groups.index') }}" class="btn btn-link">@lang('admin.list_groups_title')</a>
|
<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>
|
<a href="{{ route('users.create') }}" class="btn btn-success"><i class="fa fa-fw fa-plus"></i> @lang('admin.create_user')</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user