You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
285 B
15 lines
285 B
'use strict';
|
|
|
|
/* globals db */
|
|
|
|
const cursor = db.users.find({ });
|
|
while (cursor.hasNext()) {
|
|
const user = cursor.next();
|
|
print(`updating user: ${user.username}`);
|
|
db.users.updateOne(
|
|
{ _id: user._id },
|
|
{
|
|
$set: { 'permissions.canCreateLinks': true },
|
|
},
|
|
);
|
|
}
|