Creating an inactive account does not make sense. Hide the activity
check box from the registration page.

Signed-off-by: Lukas Fleischer <[email protected]>
---
 web/template/account_edit_form.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/web/template/account_edit_form.php 
b/web/template/account_edit_form.php
index f988714..56bdd45 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -60,10 +60,12 @@
                </p>
                <?php endif; ?>
 
+               <?php if ($A == "UpdateAccount"): ?>
                <p>
                        <label for="id_inactive"><?= __("Inactive") ?>:</label>
                        <input type="checkbox" name="J" id="id_inactive" <?= $J 
? 'checked="checked"' : '' ?> />
                </p>
+               <?php endif; ?>
 
                <p>
                        <label for="id_email"><?= __("Email Address") 
?>:</label>
-- 
2.4.1

Reply via email to