Commit 7eb4e352 authored by Tatiana Rocher's avatar Tatiana Rocher
parents 83cea662 923227a1
......@@ -185,6 +185,10 @@ class VidjilAuth(Auth):
if key not in self.permissions:
self.permissions[key] = {}
query = db(self.vidjil_accessible_query(PermissionEnum.read.value, object_of_action)).select(self.db[object_of_action].ALL)
for row in query:
self.permissions[key][row.id] = False
query = db(self.vidjil_accessible_query(action, object_of_action)).select(self.db[object_of_action].ALL)
for row in query:
self.permissions[key][row.id] = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment