X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/e6d1e37559beee0064df00956fda8b7e6c9d68b2..5810ce115f54f6890d63e0ab8bd60dde726e4cb2:/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)