1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-07 10:10:56 +00:00

Add User Role and Allow/Disallow Roles to control Element Visibility

This commit is contained in:
Tsering Paljor 2024-07-02 11:46:10 +00:00
parent 4d295c10b7
commit c5c714ff63
58 changed files with 3261 additions and 166 deletions
web-frontend/modules/builder

View file

@ -0,0 +1,10 @@
/**
* Constants related to Visibility and Roles
*/
export const VISIBILITY_ALL = 'all'
export const VISIBILITY_NOT_LOGGED = 'not-logged'
export const VISIBILITY_LOGGED_IN = 'logged-in'
export const ROLE_TYPE_ALLOW_ALL = 'allow_all'
export const ROLE_TYPE_ALLOW_EXCEPT = 'allow_all_except'
export const ROLE_TYPE_DISALLOW_EXCEPT = 'disallow_all_except'
export const DEFAULT_USER_ROLE_PREFIX = '__user_source_'