{event name='fieldsets'}
</div>
+ {if !$__wcf->user->userID}
<div class="formSubmit">
<input type="submit" name="accept" value="{lang}wcf.user.register.disclaimer.accept{/lang}" accesskey="s" />
<a class="button" href="{link}{/link}">{lang}wcf.user.register.disclaimer.decline{/lang}</a>
</div>
+ {/if}
</form>
{include file='footer'}
public function readParameters() {
parent::readParameters();
- // user is already registered
- if (WCF::getUser()->userID) {
- throw new PermissionDeniedException();
- }
-
// registration disabled
- if (REGISTER_DISABLED) {
+ if (!WCF::getUser()->userID && REGISTER_DISABLED) {
throw new NamedUserException(WCF::getLanguage()->get('wcf.user.register.error.disabled'));
}
}
public function readFormParameters() {
parent::readFormParameters();
- if (isset($_POST['accept'])) $this->accept = true;
+ if (!WCF::getUser()->userID && isset($_POST['accept'])) $this->accept = true;
}
/**