Don't allow access if user has already taken part

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2019-08-01 17:02:45 +02:00
commit c03647a1c4
5 changed files with 97 additions and 0 deletions

View file

@ -126,6 +126,13 @@
{{ t('forms', 'Anonymous form') }}
</label>
<input id="unique" v-model="form.event.unique" :disabled="form.event.access !== 'registered' || form.event.isAnonymous"
type="checkbox" class="checkbox"
>
<label for="unique" class="title">
<span>{{ t('forms', 'Only allow one submission per user') }}</span>
</label>
<input v-show="form.event.isAnonymous" id="trueAnonymous" v-model="form.event.fullAnonymous"
:disabled="protect" type="checkbox" class="checkbox"
>
@ -217,6 +224,7 @@ export default {
description: '',
created: '',
access: 'public',
unique: false,
expiration: false,
expirationDate: '',
expired: false,