mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-09 18:06:54 +01:00
* [MOD] Improved behavior when searching for user permission on accounts. Thanks to @anth69 for the feedback. Closes #1338
* [MOD] Updated translations. Thanks to all contributors. Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -298,11 +298,11 @@ final class AccountSearchService extends Service
|
||||
|
||||
if (is_object($userData)) {
|
||||
$queryCondition->addFilter(
|
||||
'Account.userId = ? OR Account.id IN
|
||||
'Account.userId = ? OR Account.userGroupId = ? OR Account.id IN
|
||||
(SELECT AccountToUser.accountId FROM AccountToUser WHERE AccountToUser.accountId = Account.id AND AccountToUser.userId = ?
|
||||
UNION ALL
|
||||
UNION
|
||||
SELECT AccountToUserGroup.accountId FROM AccountToUserGroup WHERE AccountToUserGroup.accountId = Account.id AND AccountToUserGroup.userGroupId = ?)',
|
||||
[$userData->getId(), $userData->getId(), $userData->getUserGroupId()]);
|
||||
[$userData->getId(), $userData->getUserGroupId(), $userData->getId(), $userData->getUserGroupId()]);
|
||||
}
|
||||
break;
|
||||
case 'owner':
|
||||
|
||||
Reference in New Issue
Block a user