mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
Closes #24
Fixed others users/groups are not saved when account is being edited by foreign user
This commit is contained in:
@@ -272,7 +272,7 @@ $maxFileSize = round(SP_Config::getValue('allowed_size') / 1024, 1);
|
||||
foreach ( $users as $otherUserName => $otherUserId) {
|
||||
$userSelected = '';
|
||||
|
||||
if ($otherUserId != $accountData->account_userGroupId && $otherUserId != $userId) {
|
||||
if ($otherUserId != $accountData->account_userGroupId) {
|
||||
if ( isset($accountUsers) && is_array($accountUsers)){
|
||||
$userSelected = ( in_array($otherUserId, $accountUsers)) ? "selected" : "";
|
||||
}
|
||||
@@ -299,7 +299,7 @@ $maxFileSize = round(SP_Config::getValue('allowed_size') / 1024, 1);
|
||||
foreach ($groups as $groupName => $groupId) {
|
||||
$uGroupSelected = '';
|
||||
|
||||
if ($groupId != $accountData->account_userGroupId && $groupId != $userGroupId) {
|
||||
if ($groupId != $accountData->account_userGroupId) {
|
||||
if ( isset($accountGroups) && is_array($accountGroups)){
|
||||
$uGroupSelected = ( in_array($groupId, $accountGroups)) ? "selected" : "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user