requiresAuthentication is self-sufficient for ACL's (#3784)
* Adds test to reproduce issue #3753 * Consider requiresAuthentication as the same level as other CLP * Better testing
This commit is contained in:
@@ -813,11 +813,9 @@ export default class SchemaController {
|
||||
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND,
|
||||
'Permission denied, user needs to be authenticated.');
|
||||
}
|
||||
// no other CLP than requiresAuthentication
|
||||
// let's resolve that!
|
||||
if (Object.keys(perms).length == 1) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
// requiresAuthentication passed, just move forward
|
||||
// probably would be wise at some point to rename to 'authenticatedUser'
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
// No matching CLP, let's check the Pointer permissions
|
||||
|
||||
Reference in New Issue
Block a user