mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [FIX] Wrong behaviour when copying account with permissions set. Thanks to @Edll for the feedback. Closes #1145
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
@@ -103,8 +103,6 @@ final class AccountForm extends FormBase implements FormInterface
|
||||
$this->accountRequest->url = $this->request->analyzeString('url');
|
||||
$this->accountRequest->notes = $this->request->analyzeString('notes');
|
||||
$this->accountRequest->userEditId = $this->context->getUserData()->getId();
|
||||
$this->accountRequest->otherUserEdit = (int)$this->request->analyzeBool('other_user_edit_enabled', false);
|
||||
$this->accountRequest->otherUserGroupEdit = (int)$this->request->analyzeBool('other_usergroup_edit_enabled', false);
|
||||
$this->accountRequest->pass = $this->request->analyzeEncrypted('password');
|
||||
$this->accountRequest->isPrivate = (int)$this->request->analyzeBool('private_enabled', false);
|
||||
$this->accountRequest->isPrivateGroup = (int)$this->request->analyzeBool('private_group_enabled', false);
|
||||
|
||||
@@ -148,6 +148,13 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($_getvar('copyAction')): // Forces an update of permissions when copying from another account ?>
|
||||
<input type="hidden" name="other_users_view_update" value="1">
|
||||
<input type="hidden" name="other_users_edit_update" value="1">
|
||||
<input type="hidden" name="other_usergroups_view_update" value="1">
|
||||
<input type="hidden" name="other_usergroups_edit_update" value="1">
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($_getvar('editAction')
|
||||
|
||||
Reference in New Issue
Block a user