packages/builder/src/components/start/DuplicateAppModal.svelte

This commit is contained in:
Dean 2024-03-11 09:55:44 +00:00
parent 9f29a2c3d9
commit 1f7e8f19ed
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@
// Create user
await auth.setInitInfo({})
if (sdk.users.isCreator($auth.user, app?.devId)) {
if (!sdk.users.isBuilder($auth.user, createdApp?.appId)) {
// Refresh for access to created applications
await auth.getSelf()
}

View File

@ -68,9 +68,9 @@
}
try {
await API.duplicateApp(data, appId)
const app = await API.duplicateApp(data, appId)
appsStore.load()
if (sdk.users.isCreator($auth.user, app?.devId)) {
if (!sdk.users.isBuilder($auth.user, app?.duplicateAppId)) {
// Refresh for access to created applications
await auth.getSelf()
}