Update profile.blade.php

Allows admins to change their email regardless if email auth is enabled or not.
This commit is contained in:
Julian Prieber 2022-05-02 21:49:10 +02:00 committed by GitHub
parent 8555a8eeef
commit 0cba21bee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
<button type="Change " class="mt-3 ml-3 btn btn-info">Change name</button>
</form>
@if(env('REGISTER_AUTH') != 'verified')
@if(env('REGISTER_AUTH') != 'verified' or auth()->user()->role == 'admin')
<br><br><form action="{{ route('editProfile') }}" method="post">
@csrf
<div class="form-group col-lg-8">