formatting nits
authorMark Huang <mlhuang@cs.princeton.edu>
Fri, 20 Oct 2006 00:38:24 +0000 (00:38 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Fri, 20 Oct 2006 00:38:24 +0000 (00:38 +0000)
PLC/Methods/AddPersonToSlice.py

index 39df45a..9948af2 100644 (file)
@@ -40,11 +40,11 @@ class AddPersonToSlice(Method):
 
         slice = slices.values()[0]
 
-        # If we are not admin, make sure the caller is a pi
+        # If we are not admin, make sure the caller is a PI
         # of the site associated with the slice
        if 'admin' not in self.caller['roles']:
-               if slice['site_id'] not in self.caller['site_ids']:
-                       raise PLCPermissionDenied, "Not allowed to add users to this slice"
+            if slice['site_id'] not in self.caller['site_ids']:
+                raise PLCPermissionDenied, "Not allowed to add users to this slice"
 
        if slice['slice_id'] not in person['slice_ids']:
             slice.add_person(person)