Issue Description
Using role.getUsers().add(user) on a master-key-only Role will still add the user. Also produces the same result with a read-only Role. I've tried to replicate this on the User class and a custom class but the ACL's on those classes seem to be working as intended.
Steps to reproduce
var user = new Parse.User()
user.id = <user ID to add to role>
var role = <Master-Key-Only Role object>
role.getUsers().add(user)
role.save()
Expected Results
The user should not be added to the role
Actual Outcome
The user is added to the role despite being master key locked
Environment Setup
-
Server
- parse-server version (Be specific! Don't say 'latest'.) : 2.3.8
- Operating System: OS X 10.11.6
- Hardware: Macbook Pro 2010
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Localhost
-
Database
- MongoDB version: 3.2.10
- Storage engine: wiredTiger
- Hardware: Macbook Pro 2010
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Localhost
Issue Description
Using
role.getUsers().add(user)on a master-key-only Role will still add the user. Also produces the same result with a read-only Role. I've tried to replicate this on the User class and a custom class but the ACL's on those classes seem to be working as intended.Steps to reproduce
var user = new Parse.User()user.id = <user ID to add to role>var role = <Master-Key-Only Role object>role.getUsers().add(user)role.save()Expected Results
The user should not be added to the role
Actual Outcome
The user is added to the role despite being master key locked
Environment Setup
Server
Database