Skip to content

A free open source IT asset/license management system

Prevent demo users from deleting/creating API keys

snipeec88d54a5bf7
diff --git a/resources/views/account/api.blade.php b/resources/views/account/api.blade.php
index 4240112a74..08dd8ea3a1 100644
--- a/resources/views/account/api.blade.php
+++ b/resources/views/account/api.blade.php
@@ -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
diff --git a/resources/views/settings/api.blade.php b/resources/views/settings/api.blade.php
index 716c7e33c4..b92776a8a6 100644
--- a/resources/views/settings/api.blade.php
+++ b/resources/views/settings/api.blade.php
@@ -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