feat: add PROJECT_CREATE_ALLOW_ALL environment variable #787
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on this discussion: #520
The goal is to provide a simple way to allow any user to create a project, where only admin can do it at the moment.
Server
Add this environment variable to
server/.env
Client
Add this environment variable to
client/.env
Thoughts
I used the easiest approach in order to allow us to start using Planka the quickest as possible. But I am not 100% fan of having to duplicate the configuration on the client and the server, imo the best way to do it, is to only keep the server environment variable and make the client load a configuration from an api route
/config
on first load, where the server would expose configuration parameters like this:But it would imply more fondamental changes and I don't sufficiently know the client architecture yet to estimate how much, and I think this PR is at least a good starting point to discuss about it.
🙏