fix: improve security by deprecating creating users with public access by default (#7319)
This commit is contained in:
@@ -1408,7 +1408,9 @@ RestWrite.prototype.runDatabaseOperation = function () {
|
||||
// default public r/w ACL
|
||||
if (!ACL) {
|
||||
ACL = {};
|
||||
ACL['*'] = { read: true, write: false };
|
||||
if (!this.config.enforcePrivateUsers) {
|
||||
ACL['*'] = { read: true, write: false };
|
||||
}
|
||||
}
|
||||
// make sure the user is not locked down
|
||||
ACL[this.data.objectId] = { read: true, write: true };
|
||||
|
||||
Reference in New Issue
Block a user