outline persons with no role
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 7 Dec 2010 15:26:13 +0000 (16:26 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 7 Dec 2010 15:26:13 +0000 (16:26 +0100)
planetlab/persons/persons.php

index 9c78cbd..3e134b5 100644 (file)
@@ -59,6 +59,8 @@ function person_status ($person) {
       $messages [] = "No Site";
   if ( ! $person['enabled'] ) 
     $messages[] = "Disabled";
+  if ( count ($person['roles']) == 0)
+    $messages []= "No role!";
   // for tech-only people: outline user if in a slice
   if ( ( count($person['roles'])==1 ) && 
        ( in_array('tech',$person['roles']) ) ) {