Fix - Issue #211

This commit is contained in:
Mauricio Baeza 2018-03-26 22:38:19 -06:00
parent 3869d4b48b
commit 790e8ed7d6
1 changed files with 5 additions and 2 deletions

View File

@ -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