mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Allow user editing in embedded (+ disabled authentication) mode (closes grocy/grocy-desktop#47)
This commit is contained in:
parent
16f686deb8
commit
dedbee3181
@ -656,10 +656,8 @@
|
||||
class="dropdown-item discrete-link link-return">
|
||||
<i class="fa-solid fa-user-cog"></i> {{ $__t('User settings') }}
|
||||
</a>
|
||||
@if(!GROCY_IS_EMBEDDED_INSTALL && !GROCY_DISABLE_AUTH)
|
||||
<a class="dropdown-item discrete-link permission-USERS_READ"
|
||||
href="{{ $U('/users') }}"><i class="fa-solid fa-users"></i> {{ $__t('Manage users') }}</a>
|
||||
@endif
|
||||
<div class="dropdown-divider"></div>
|
||||
@if(!GROCY_DISABLE_AUTH)
|
||||
<a class="dropdown-item discrete-link"
|
||||
|
@ -63,6 +63,7 @@
|
||||
value="@if($mode == 'edit'){{ $user->last_name }}@endif">
|
||||
</div>
|
||||
|
||||
@if(!GROCY_IS_EMBEDDED_INSTALL && !GROCY_DISABLE_AUTH)
|
||||
@if(!defined('GROCY_EXTERNALLY_MANAGED_AUTHENTICATION'))
|
||||
@if($mode == 'edit')
|
||||
<div class="form-group mb-1">
|
||||
@ -115,6 +116,7 @@
|
||||
id="password_confirm"
|
||||
value="x">
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@include('components.userfieldsform', array(
|
||||
'userfields' => $userfields,
|
||||
|
@ -97,12 +97,14 @@
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fa-solid fa-edit"></i>
|
||||
</a>
|
||||
@if(!GROCY_IS_EMBEDDED_INSTALL && !GROCY_DISABLE_AUTH)
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/user/' . $user->id . '/permissions') }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Configure user permissions') }}">
|
||||
<i class="fa-solid fa-lock"></i>
|
||||
</a>
|
||||
@endif
|
||||
<a class="btn btn-danger btn-sm user-delete-button @if($user->id == GROCY_USER_ID) disabled @endif"
|
||||
href="#"
|
||||
data-user-id="{{ $user->id }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user