fix: volatileClasses are masterKey only (#3916)

* volatileClass should respect the schema if defined

* masterKey only for the volatileClasses

* add some test …
This commit is contained in:
Worathiti Manosroi
2017-06-13 16:36:40 +02:00
committed by Florent Vilmart
parent c4fbc1f358
commit 7d70af60ba
4 changed files with 40 additions and 4 deletions

View File

@@ -793,6 +793,7 @@ export default class SchemaController {
// Validates an operation passes class-level-permissions set in the schema
validatePermission(className, aclGroup, operation) {
if (this.testBaseCLP(className, aclGroup, operation)) {
return Promise.resolve();
}