itflow-org / itflow

Free and open-source web application for MSPs. Unifies IT documentation, ticketing, invoicing.
https://itflow.org
GNU General Public License v3.0
525 stars 143 forks source link

User roles - Initial #964

Closed wrongecho closed 1 month ago

wrongecho commented 1 month ago

Move the default user roles into the database to make way for custom roles & permissions.

Please could you take a look, test, and let me know your thoughts? Following from this, I'd like to create a role_permissions table where we then re-create the default permissions that we have in the code in the database. Once all that is complete, we can then open up to editing the built-in roles / allowing custom roles and permissions.

wrongecho commented 1 month ago

Test these changes at: https://userrolesinitial964.pr-review.itflow.org
(automatic message)

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
15.7% Duplication on New Code

See analysis details on SonarCloud

johnnyq commented 1 month ago

This looks great!! Code is clean, can't seem to find any where this might break pulling in