X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/e6d1e37559beee0064df00956fda8b7e6c9d68b2..77a41b7c116c54153bc596fa5cf43567d6824460:/sercom/model.py?ds=inline 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)