mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Don’t show groups in menu if there are none yet
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
1400c610a1
commit
a9069e65e5
|
@ -461,6 +461,7 @@
|
||||||
<label class="col-md-3 control-label" for="groups[]"> {{ trans('general.groups') }}</label>
|
<label class="col-md-3 control-label" for="groups[]"> {{ trans('general.groups') }}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
@if ($groups->count())
|
||||||
@if ((Config::get('app.lock_passwords') || (!Auth::user()->isSuperUser())))
|
@if ((Config::get('app.lock_passwords') || (!Auth::user()->isSuperUser())))
|
||||||
|
|
||||||
@if (count($userGroups->keys()) > 0)
|
@if (count($userGroups->keys()) > 0)
|
||||||
|
@ -494,6 +495,9 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@else
|
||||||
|
<p>No groups have been created yet. Visit <code>Admin Settings > Permission Groups</code> to add one.</p>
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue