Added the ability for admins to delete users. Closes #791
This commit is contained in:
@@ -149,6 +149,10 @@ return [
|
||||
'success' => 'Profile updated.',
|
||||
'failure' => 'Something went wrong when updating.',
|
||||
],
|
||||
'delete' => [
|
||||
'success' => 'User updated.',
|
||||
'failure' => 'Something went wrong when deleting this user.',
|
||||
],
|
||||
],
|
||||
|
||||
// Settings
|
||||
|
||||
@@ -33,7 +33,10 @@
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-success">{{ trans('forms.update') }}</button>
|
||||
@if($current_user->isAdmin)
|
||||
<a class="btn btn-danger" href="/dashboard/user/{{ $user->id }}/api/regen">{{ trans('cachet.api.revoke') }}</a>
|
||||
<a class="btn btn-info" href="/dashboard/user/{{ $user->id }}/api/regen">{{ trans('cachet.api.revoke') }}</a>
|
||||
@if($current_user->id != $user->id)
|
||||
<a class="btn btn-danger confirm-action" href="/dashboard/team/{{ $user->id }}/delete" data-method="DELETE">{{ trans('forms.delete') }}</a>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user