From 32ab82a1b33e6d4f8308da9f269fbd7b545d9e12 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 7 Dec 2010 16:03:17 +0100 Subject: [PATCH] cannot disable my own account cannot become a disabled account --- planetlab/persons/person.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/planetlab/persons/person.php b/planetlab/persons/person.php index 107219c..4e978af 100644 --- a/planetlab/persons/person.php +++ b/planetlab/persons/person.php @@ -1,7 +1,5 @@ 'POST', 'url'=>l_actions(), 'values'=>array('action'=>'become-person', @@ -86,7 +84,7 @@ if (plc_is_admin() && ! $is_my_account && $local_peer) 'bubble'=>"Become $first_name $last_name", 'confirm'=>"Are you sure you want to become $first_name $last_name"); -if ($local_peer && $privileges) +if ($local_peer && $privileges && ! $is_my_account) if ($enabled) $tabs['Disable'] = array ('method'=>'POST', 'url'=>l_actions(), -- 2.43.0