<?php
-// $Id$
-
// Require login
require_once 'plc_login.php';
// enable / disable
// become
-if (plc_is_admin() && ! $is_my_account && $local_peer)
+if (plc_is_admin() && ! $is_my_account && $local_peer && $enabled)
$tabs['Become'] = array('method'=>'POST',
'url'=>l_actions(),
'values'=>array('action'=>'become-person',
'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(),
'confirm'=>"Are you sure you want to enable $first_name $last_name");
// delete
-if ($local_peer && $privileges && $local_peer)
+if ($local_peer && $privileges && $local_peer && ! $is_my_account)
$tabs['Delete'] = array ('method'=>'POST',
'url'=>l_actions(),
'values'=> array ('person_id'=>$person_id,
$is_pi_of_the_site = ( plc_in_site($site_ids[0]) && plc_is_pi() );
$can_manage_roles= ( ($local_peer && plc_is_admin()) || $is_pi_of_the_site );
- $table_options=array("search_area"=>false,"notes_area"=>false);
$headers=array("Role"=>"string");
if ($can_manage_roles) $headers [plc_delete_icon()]="none";