- call DeletePersonFromSlice
[plcapi.git] / PLC / Methods / AddPersonKey.py
index 6badf39..0c36284 100644 (file)
@@ -38,7 +38,9 @@ class AddPersonKey(Method):
         if not persons:
             raise PLCInvalidArgument, "No such account"
         person = persons[0]
-       PLCCheckLocalPerson (person,"AddPersonKey")
+
+        if person['peer_id'] is not None:
+            raise PLCInvalidArgument, "Not a local account"
 
        # If we are not admin, make sure caller is adding a key to their account
         if 'admin' not in self.caller['roles']: