close #2098 Fixed: Profile cancel button broken
This commit is contained in:
		| @@ -63,7 +63,11 @@ | ||||
|             @canany(['update-auth-users', 'update-auth-profile']) | ||||
|                 <div class="card-footer"> | ||||
|                     <div class="row save-buttons"> | ||||
|                         {{ Form::saveButtons('users.index') }} | ||||
|                         @if (user()->can('read-auth-users')) | ||||
|                             {{ Form::saveButtons('users.index') }} | ||||
|                         @else | ||||
|                             {{ Form::saveButtons('dashboard') }} | ||||
|                         @endif | ||||
|                     </div> | ||||
|                 </div> | ||||
|             @endcanany | ||||
|   | ||||
		Reference in New Issue
	
	Block a user