X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteRole.py;h=bb4a471cbe72dd9369639246dc3fb75c657dd535;hb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;hp=38287a9ccd175ec848556438a3c3baf463780a64;hpb=8a487f290fe09f77b4e1c1bf7ddb38a5ab4832e6;p=plcapi.git diff --git a/PLC/Methods/DeleteRole.py b/PLC/Methods/DeleteRole.py index 38287a9..bb4a471 100644 --- a/PLC/Methods/DeleteRole.py +++ b/PLC/Methods/DeleteRole.py @@ -2,7 +2,7 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.Roles import Role, Roles -from PLC.Auth import PasswordAuth +from PLC.Auth import Auth class DeleteRole(Method): """ @@ -18,7 +18,7 @@ class DeleteRole(Method): roles = ['admin'] accepts = [ - PasswordAuth(), + Auth(), Mixed(Role.fields['role_id'], Role.fields['name']) ]