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.Roles import Role, Roles
class AddRoleToPerson(Method):
roles = ['admin', 'pi']
accepts = [
- PasswordAuth(),
+ Auth(),
Mixed(Role.fields['role_id'],
Role.fields['name']),
Mixed(Person.fields['person_id'],