Merge pull request #14999 from marcusmoore/fixes/hide-edit-profile-button

Removed "Edit Your Profile" button from View Assets page if user is not able to edit their profile
This commit is contained in:
snipe 2024-07-01 18:15:47 +01:00 committed by GitHub
commit d2df83cf2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,13 +101,13 @@
<div class="col-md-12 text-center">
<img src="{{ $user->present()->gravatar() }}" class=" img-thumbnail hidden-print" style="margin-bottom: 20px;" alt="{{ $user->present()->fullName() }}">
</div>
@can('self.profile')
<div class="col-md-12">
<a href="{{ route('profile') }}" style="width: 100%;" class="btn btn-sm btn-primary hidden-print">
{{ trans('general.editprofile') }}
</a>
</div>
@endcan
<div class="col-md-12" style="padding-top: 5px;">
<a href="{{ route('account.password.index') }}" style="width: 100%;" class="btn btn-sm btn-primary hidden-print" target="_blank" rel="noopener">
{{ trans('general.changepassword') }}