flowcore-io / luttaka-open

The open source event experience app powered by the Flowcore Data Management Platform
https://luttaka.com
MIT License
11 stars 11 forks source link

Set the role of the first user to admin #95

Closed olavurellefsen closed 2 months ago

olavurellefsen commented 3 months ago

Is your documentation improvement request related to a specific problem or confusion? Please describe. šŸ‘Øā€šŸ’» If you follow the current instructions in the README.md file, you are not able to start using the system, because there is no conference created, and in order to create a conference, you need to have a user with admin privileges. In order to get that, you need to login one user and then update their role in the users table in the database to "admin".

Describe the improvements you would like šŸ–Šļø When creating a user, check if it is the first user. If it is, then give it the role "admin". Add explanation to the README.md file.

Explain why this improvement is beneficial (optional) šŸ“š This will remove a blocker that new contributors will likely encounter.

Describe any alternative solutions or features you've considered (optional) šŸ”„ An alternative would be to add an environmental variable to set a user with a specific email address to be admin.

Additional context or comments (optional) None