Fix inventory sharing [SCI-10428] (#7260)

This commit is contained in:
ajugo 2024-03-12 14:18:51 +01:00 committed by GitHub
parent 166a9592f5
commit 802ebb68a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,8 +101,8 @@ export default {
const data = {
select_all_teams: this.sharedWithAllRead,
select_all_write_permission: this.sharedWithAllWrite,
share_team_ids: this.shareableTeams.filter((team) => team.private_shared_with).map((team) => team.id),
write_permissions: this.shareableTeams.filter((team) => team.private_shared_with_write).map((team) => team.id),
share_team_ids: this.shareableTeams.filter((team) => team.attributes.private_shared_with).map((team) => team.id),
write_permissions: this.shareableTeams.filter((team) => team.attributes.private_shared_with_write).map((team) => team.id),
permission_changes: this.permission_changes
};
axios.post(this.repository.urls.share, data).then(() => {