Skip to content

Master-Key-Only Role can be edited from the client JS SDK #3835

@davidrichard23

Description

@davidrichard23

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions