mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 11:27:07 +00:00
remove unsetting deniedPermissions
This commit is contained in:
@@ -691,7 +691,7 @@ export const backfillPermission = async () => {
|
|||||||
$exists: true,
|
$exists: true,
|
||||||
$ne: []
|
$ne: []
|
||||||
},
|
},
|
||||||
role: MEMBER
|
role: MEMBER,
|
||||||
})
|
})
|
||||||
.populate<{ workspace: IWorkspace }>("workspace")
|
.populate<{ workspace: IWorkspace }>("workspace")
|
||||||
.lean();
|
.lean();
|
||||||
@@ -753,9 +753,6 @@ export const backfillPermission = async () => {
|
|||||||
$set: {
|
$set: {
|
||||||
role: CUSTOM,
|
role: CUSTOM,
|
||||||
customRole: role
|
customRole: role
|
||||||
},
|
|
||||||
$unset: {
|
|
||||||
deniedPermissions: 1
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user