remove unsetting deniedPermissions

This commit is contained in:
Maidul Islam
2023-09-15 09:53:17 -04:00
parent 029766c534
commit adfa90340d

View File

@@ -691,7 +691,7 @@ export const backfillPermission = async () => {
$exists: true,
$ne: []
},
role: MEMBER
role: MEMBER,
})
.populate<{ workspace: IWorkspace }>("workspace")
.lean();
@@ -753,9 +753,6 @@ export const backfillPermission = async () => {
$set: {
role: CUSTOM,
customRole: role
},
$unset: {
deniedPermissions: 1
}
});
}