Form Templates for self hosted (#546)
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user