Disable the API field for staff members (#407)

This commit is contained in:
Belle Aerni authored and GitHub committed 2022-10-29 12:11:30 -07:00
1 parent 1769db8174
commit dacd817e95
1 file changed
+3 -1
@@ -171,7 +171,8 @@
<div class="card-body">
<h3>{{ 'API key'|trans }}</h3>
<p class="text-muted">{{ 'API keys are used to manage the system via other interfaces.'|trans }}</p>
<p class="text-muted">{{ 'As of this time, staff members can only change their own API keys from within their'|trans }} <a href="{{ '/admin/staff/profile'|alink }}">profile</a></p>
<!--
<form method="post" action="admin/profile/generate_api_key" class="api-form" data-api-reload="1">
<div class="mb-3 row">
<label class="form-label col-3 col-form-label">{{ 'API key'|trans }}</label>
@@ -183,6 +184,7 @@
<input type="hidden" name="id" value="{{ staff.id }}">
<input type="submit" value="{{ 'Generate new key'|trans }}" class="btn btn-primary w-100">
</form>
-->
</div>
</div>
</div>