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']: