parse-community / parse-community/parse-server

allowClientClassCreation Based on Roles

Open
#8,426 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
Current Limitation

allowClientClassCreation Is limited to true or false no ability to condition. I'd like to be able to set an array of Role names, this will allow class creation permission to be granted to a subset of users/roles.

Feature / Enhancement Description

allowClientClassCreation Should accept an array of role names or something more complex permission structure, I can see that there are a few places that need an extra array includes check. and maybe user role fetching.

Example Use Case

If this is available we will be able to build functionality while the app remains active.
It is useful if your using parse as a app platform running smaller interconnected apps. You have a developer User that can add functionality without the need to restart the server. Might be niche, thoughts?

Alternatives / Workarounds

None

3rd Party References

Not that I know of

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the allowClientClassCreation configuration and the existing class-creation permission checks, then examine how user roles are fetched. Define the supported role-name configuration and verify that only users in those roles can create classes while existing boolean behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
authorization, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.