packages/builder/src/components/start/DuplicateAppModal.svelte
This commit is contained in:
parent
9f29a2c3d9
commit
1f7e8f19ed
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue