Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.23k stars 1.43k forks source link

Move Role constants from frontend core to shared core #13940

Closed melohagan closed 2 weeks ago

melohagan commented 2 weeks ago

Description

Refactor

Addresses

linear[bot] commented 2 weeks ago

GROW-301 Move role ENUM to shared-core

mike12345567 commented 2 weeks ago

One thing to mention, the backend also has some cases where this is duplicated, to be honest we could move this to an enumeration in @budibase/types to make it accessible everywhere, in the backend we have BUILTIN_ROLE_IDS and BUILTIN_IDS which list these in backend-core/src/security/roles.ts.