mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-09 17:48:20 +00:00
fix modifing permissions targeting wrong user
This commit is contained in:
parent
0beee61585
commit
c8e7981f4b
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ func GeneratePermissionChanges(oldPermissions []api.Permission, changes []ShareO
|
|||
for _, oldPerm := range oldPermissions {
|
||||
if oldPerm.ARO == change.ARO && oldPerm.AROForeignKey == change.AROID {
|
||||
oldPermission = &oldPerm
|
||||
break
|
||||
}
|
||||
}
|
||||
// Check Whether Matching Permission Already Exists and needs to be adjusted or is a new one can be created
|
||||
|
|
Loading…
Add table
Reference in a new issue