mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 17:26:36 +00:00
only backfill roles for non empty permissions array
This commit is contained in:
committed by
Akhil Mohan
parent
43b97b411b
commit
9c9d46824c
@@ -678,7 +678,8 @@ export const backfillPermission = async () => {
|
|||||||
await Membership.updateMany(
|
await Membership.updateMany(
|
||||||
{
|
{
|
||||||
deniedPermissions: {
|
deniedPermissions: {
|
||||||
$exists: true
|
$exists: true,
|
||||||
|
$ne: []
|
||||||
},
|
},
|
||||||
role: MEMBER
|
role: MEMBER
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user