Merge branch 'develop'

Fix - Issue #211
This commit is contained in:
Mauricio Baeza 2018-03-29 16:20:56 -06:00
commit 5b15166c7a
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