X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/e6d1e37559beee0064df00956fda8b7e6c9d68b2..e9571fa510c7719a5b3e59a795fe8b7625112f3d:/sercom/model.py diff --git a/sercom/model.py b/sercom/model.py index dff54ae..d06a570 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -194,10 +194,12 @@ class Usuario(InheritableSQLObject, ByObject): #{{{ def _get_permissions(self): # para identity perms = set() - for g in self.groups: - perms.update(g.permisos) + for r in self.roles: + perms.update(r.permisos) return perms + _get_permisos = _get_permissions + def _set_password(self, cleartext_password): # para identity self.contrasenia = encryptpw(cleartext_password)