make GetLeases reachable with anon auth
[plcapi.git] / PLC / Boot.py
index cd3a738..52a9fd9 100644 (file)
@@ -4,8 +4,6 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2007 The Trustees of Princeton University
 #
-# $Id$
-#
 
 from PLC.Faults import *
 from PLC.Debug import log
@@ -40,8 +38,8 @@ def notify_owners(method, node, message_id,
 
         persons = Persons(method.api, site['person_ids'])
         for person in persons:
-            if include_pis and 'pi' in person['roles'] or \
-               include_techs and 'tech' in person['roles']:
+            if (include_pis and 'pi' in person['roles'] and person['enabled']) or \
+               (include_techs and 'tech' in person['roles'] and person['enabled']) :
                 To.append(("%s %s" % (person['first_name'], person['last_name']), person['email']))
 
     # Send email