Prevent demo users from deleting/creating API keys

This commit is contained in:
snipe 2017-01-25 05:03:30 -08:00
parent 2a7469d898
commit ec88d54a5b
2 changed files with 10 additions and 3 deletions

View file

@ -8,7 +8,10 @@
{{-- Page content --}}
@section('content')
<passport-personal-access-tokens></passport-personal-access-tokens>
@if (!config('app.lock_passwords'))
<passport-personal-access-tokens></passport-personal-access-tokens>
@else
<p class="help-block">{{ trans('general.feature_disabled') }}</p>
@endif
@stop

View file

@ -8,7 +8,11 @@
{{-- Page content --}}
@section('content')
@if (!config('app.lock_passwords'))
<passport-clients></passport-clients>
<passport-authorized-clients></passport-authorized-clients>
@else
<p class="help-block">{{ trans('general.feature_disabled') }}</p>
@endif
@stop