From 931b0dcae8331a4a348665c1ed23621023ca75aa Mon Sep 17 00:00:00 2001 From: Kenzaburo Ito Date: Fri, 18 Jan 2002 06:41:23 +0000 Subject: [PATCH] Added g_allow_account_delete global to prevent self account deletion. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@662 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- account_delete.php | 4 ++++ account_delete_page.php | 4 ++++ account_page.php | 6 ++++++ config_inc.php | 4 ++++ doc/ChangeLog | 1 + doc/configuration.html | 8 ++++++++ 6 files changed, 27 insertions(+) diff --git a/account_delete.php b/account_delete.php index fda524b9fa..c0ef0d4b73 100644 --- a/account_delete.php +++ b/account_delete.php @@ -13,6 +13,10 @@ diff --git a/account_page.php b/account_page.php index 7594ec26ff..9a1ca7a272 100644 --- a/account_page.php +++ b/account_page.php @@ -144,11 +144,17 @@ +
+ + +   + + diff --git a/config_inc.php b/config_inc.php index 55d1e99604..0af1435de8 100644 --- a/config_inc.php +++ b/config_inc.php @@ -377,6 +377,10 @@ # Allow developers and above to close bugs immediately when resolving bugs $g_allow_close_immediately = OFF; + # --- account delete ----------- + # Allow users to delete their own accounts + $g_allow_account_delete = OFF; + ############################## # Mantis Color Variables ############################## diff --git a/doc/ChangeLog b/doc/ChangeLog index c27c206acd..cd024bde8c 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -34,6 +34,7 @@ Mantis * Added a check to make sure the cookie_string really is unique. * Added a check for a duplciate user in the manage create user page. * Added Romanian translation. + * Added g_allow_account_delete global to prevent self account deletion. * Removed site_settings pages. * Removed unused cookie variables. * Removed sql_to_unix_time() function. Unecessary with removal of TIMESTAMPS. diff --git a/doc/configuration.html b/doc/configuration.html index 751a5af4dd..83e924de2c 100644 --- a/doc/configuration.html +++ b/doc/configuration.html @@ -1127,6 +1127,14 @@

Content

Allow developers and above to close bugs immediately when resolving bugs. + + + $g_allow_account_delete + + + Allow users to delete their own accounts. + + Access level needed to re-open bugs. Look in the constant_inc.php file if you want to set a different value.