diff --git a/source/app/controllers/main.py b/source/app/controllers/main.py index 1008536..df29e35 100644 --- a/source/app/controllers/main.py +++ b/source/app/controllers/main.py @@ -95,8 +95,11 @@ class AppValues(object): self._db = db def _valid_user(self, table, user): - if table in self.TABLES and not user.es_admin: - return False + if table in self.TABLES: + if user.es_admin or user.es_superusuario: + return True + else: + return False return True