Form Templates for self hosted (#546)

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala
2024-08-29 14:38:09 +05:30
committed by GitHub
parent 6736e15074
commit 8e777ecca6
2 changed files with 31 additions and 4 deletions

View File

@@ -334,6 +334,7 @@ const canEditTemplate = computed(
() =>
authStore.check &&
template.value &&
template.value?.from_prod !== true &&
(authStore.user.admin ||
authStore.user.template_editor ||
template.value.creator_id === authStore.user.id),