diff --git a/packages/bbui/src/FancyForm/FancySelect.svelte b/packages/bbui/src/FancyForm/FancySelect.svelte
index e015f51570..14911f10ab 100644
--- a/packages/bbui/src/FancyForm/FancySelect.svelte
+++ b/packages/bbui/src/FancyForm/FancySelect.svelte
@@ -12,11 +12,13 @@
export let error = null
export let validate = null
export let options = []
+ export let footer = null
export let isOptionEnabled = () => true
export let getOptionLabel = option => extractProperty(option, "label")
export let getOptionValue = option => extractProperty(option, "value")
export let getOptionSubtitle = option => extractProperty(option, "subtitle")
export let getOptionColour = () => null
+
const dispatch = createEventDispatcher()
let open = false
@@ -100,6 +102,7 @@
{error}
{disabled}
{options}
+ {footer}
{getOptionLabel}
{getOptionValue}
{getOptionSubtitle}
diff --git a/packages/builder/src/pages/builder/app/[application]/_components/BuilderSidePanel.svelte b/packages/builder/src/pages/builder/app/[application]/_components/BuilderSidePanel.svelte
index adb0c985dc..726b79e23d 100644
--- a/packages/builder/src/pages/builder/app/[application]/_components/BuilderSidePanel.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/_components/BuilderSidePanel.svelte
@@ -364,7 +364,10 @@
const payload = [
{
email: newUserEmail,
- builder: { global: creationRoleType === Constants.BudibaseRoles.Admin },
+ builder: {
+ global: creationRoleType === Constants.BudibaseRoles.Admin,
+ creator: creationRoleType === Constants.BudibaseRoles.Creator,
+ },
admin: { global: creationRoleType === Constants.BudibaseRoles.Admin },
},
]
@@ -517,6 +520,18 @@
}
return user.role
}
+
+ const checkAppAccess = e => {
+ // Ensure we don't get into an invalid combo of tenant role and app access
+ if (
+ e.detail === Constants.BudibaseRoles.AppUser &&
+ creationAccessType === Constants.Roles.CREATOR
+ ) {
+ creationAccessType = Constants.Roles.BASIC
+ } else if (e.detail === Constants.BudibaseRoles.Admin) {
+ creationAccessType = Constants.Roles.CREATOR
+ }
+ }