X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetPCUs.py;h=881a85f64728e3cf635df135fa918c962b611b43;hb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;hp=6c8731bea631a8ce1d3109004d13de07e0871d7a;hpb=8a487f290fe09f77b4e1c1bf7ddb38a5ab4832e6;p=plcapi.git diff --git a/PLC/Methods/GetPCUs.py b/PLC/Methods/GetPCUs.py index 6c8731b..881a85f 100644 --- a/PLC/Methods/GetPCUs.py +++ b/PLC/Methods/GetPCUs.py @@ -2,7 +2,7 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.PCUs import PCU, PCUs -from PLC.Auth import PasswordAuth +from PLC.Auth import Auth class GetPCUs(Method): """ @@ -16,7 +16,7 @@ class GetPCUs(Method): roles = ['admin', 'pi', 'tech'] accepts = [ - PasswordAuth(), + Auth(), [PCU.fields['pcu_id']] ]