Adding request check for 'monitor' account key fetch.
authorStephen Soltesz <soltesz@cs.princeton.edu>
Tue, 8 Apr 2008 21:26:18 +0000 (21:26 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Tue, 8 Apr 2008 21:26:18 +0000 (21:26 +0000)
PlanetLabConf/keys.php

index eab3167..58721b0 100755 (executable)
@@ -33,6 +33,12 @@ if (!empty($_REQUEST['role'])) {
     }
   }
 }
+if (isset($_REQUEST[PLC_SLICE_PREFIX . '_monitor'])) {
+  $user = $adm->GetPersons(array('first_name' => 'Site', 'last_name' => 'Assistant'));
+  if (!empty($user)) {
+    $persons[] = $user[0];
+  }
+}
 
 if (isset($_REQUEST['site_admin'])) {
   // Look up the node