mirror of https://github.com/BOINC/boinc.git
web: add feature flag to only show delete account if
<enable_delete_account/> is set in config.xml
This commit is contained in:
parent
3689cda9b4
commit
27b1274e4e
|
@ -260,10 +260,17 @@ function show_user_info_private($user) {
|
|||
"<a href=\"edit_user_info_form.php?$url_tokens\">Account info</a>"
|
||||
);
|
||||
} else {
|
||||
$delete_account_str = "";
|
||||
$config = get_config();
|
||||
if ( parse_bool($config, "enable_delete_account") ) {
|
||||
$delete_account_str = " · <a href=\"remove_account_request.php\">".tra("remove account")."</a>";
|
||||
}
|
||||
|
||||
row2(tra("Change"),
|
||||
"<a href=\"edit_email_form.php\">".tra("email address")."</a>
|
||||
· <a href=\"".secure_url_base()."/edit_passwd_form.php\">".tra("password")."</a>
|
||||
· <a href=\"edit_user_info_form.php?$url_tokens\">".tra("other account info")."</a>"
|
||||
.$delete_account_str
|
||||
);
|
||||
}
|
||||
row2(tra("User ID")."<br/><p class=\"small\">".tra("Used in community functions")."</p>", $user->id);
|
||||
|
|
Loading…
Reference in New Issue