X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAdmAddPerson.py;h=2b90f61a20364b3a68c90d7fe293d99714d6b942;hb=594b41a1dfd7525730fb20d7f7ee3593f6f93e96;hp=c43b4d9b15302798ffeada09d1c9e6a4971683b4;hpb=ed7fa1ebf97ec2f88f18f8fa538e46c6ae9525c4;p=plcapi.git diff --git a/PLC/Methods/AdmAddPerson.py b/PLC/Methods/AdmAddPerson.py index c43b4d9..2b90f61 100644 --- a/PLC/Methods/AdmAddPerson.py +++ b/PLC/Methods/AdmAddPerson.py @@ -2,7 +2,7 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.Persons import Person, Persons -from PLC.Auth import PasswordAuth +from PLC.Auth import Auth from PLC.Methods.AddPerson import AddPerson can_update = lambda (field, value): field in \ @@ -18,7 +18,7 @@ class AdmAddPerson(AddPerson): person_fields = dict(filter(can_update, Person.fields.items())) accepts = [ - PasswordAuth(), + Auth(), Person.fields['first_name'], Person.fields['last_name'], person_fields