|
|
|
@ -43,7 +43,7 @@ def user_create(domain_name):
|
|
|
|
|
domain=domain, form=form)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ui.route('/user/edit/<user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@ui.route('/user/edit/<path:user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@access.domain_admin(models.User, 'user_email')
|
|
|
|
|
def user_edit(user_email):
|
|
|
|
|
user = models.User.query.get(user_email) or flask.abort(404)
|
|
|
|
@ -71,7 +71,7 @@ def user_edit(user_email):
|
|
|
|
|
domain=user.domain, max_quota_bytes=max_quota_bytes)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ui.route('/user/delete/<user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@ui.route('/user/delete/<path:user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@access.domain_admin(models.User, 'user_email')
|
|
|
|
|
@access.confirmation_required("delete {user_email}")
|
|
|
|
|
def user_delete(user_email):
|
|
|
|
@ -85,7 +85,7 @@ def user_delete(user_email):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ui.route('/user/settings', methods=['GET', 'POST'], defaults={'user_email': None})
|
|
|
|
|
@ui.route('/user/usersettings/<user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@ui.route('/user/usersettings/<path:user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@access.owner(models.User, 'user_email')
|
|
|
|
|
def user_settings(user_email):
|
|
|
|
|
user_email_or_current = user_email or flask_login.current_user.email
|
|
|
|
@ -109,7 +109,7 @@ def user_settings(user_email):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ui.route('/user/password', methods=['GET', 'POST'], defaults={'user_email': None})
|
|
|
|
|
@ui.route('/user/password/<user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@ui.route('/user/password/<path:user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@access.owner(models.User, 'user_email')
|
|
|
|
|
def user_password(user_email):
|
|
|
|
|
user_email_or_current = user_email or flask_login.current_user.email
|
|
|
|
@ -129,7 +129,7 @@ def user_password(user_email):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ui.route('/user/forward', methods=['GET', 'POST'], defaults={'user_email': None})
|
|
|
|
|
@ui.route('/user/forward/<user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@ui.route('/user/forward/<path:user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@access.owner(models.User, 'user_email')
|
|
|
|
|
def user_forward(user_email):
|
|
|
|
|
user_email_or_current = user_email or flask_login.current_user.email
|
|
|
|
@ -146,7 +146,7 @@ def user_forward(user_email):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ui.route('/user/reply', methods=['GET', 'POST'], defaults={'user_email': None})
|
|
|
|
|
@ui.route('/user/reply/<user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@ui.route('/user/reply/<path:user_email>', methods=['GET', 'POST'])
|
|
|
|
|
@access.owner(models.User, 'user_email')
|
|
|
|
|
def user_reply(user_email):
|
|
|
|
|
user_email_or_current = user_email or flask_login.current_user.email
|
|
|
|
|