X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeletePCU.py;h=4b50a3f3f03574eaf41345bd0a5c8ae033434618;hb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;hp=ae52b43fe09dc562a6a767388ee4d9230bd7e2cf;hpb=8a487f290fe09f77b4e1c1bf7ddb38a5ab4832e6;p=plcapi.git diff --git a/PLC/Methods/DeletePCU.py b/PLC/Methods/DeletePCU.py index ae52b43..4b50a3f 100644 --- a/PLC/Methods/DeletePCU.py +++ b/PLC/Methods/DeletePCU.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 DeletePCU(Method): """ @@ -16,7 +16,7 @@ class DeletePCU(Method): roles = ['admin', 'pi', 'tech'] accepts = [ - PasswordAuth(), + Auth(), PCU.fields['pcu_id'], ]