about summary refs log tree commit diff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/auth/authorisation/resources.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gn3/auth/authorisation/resources.py b/gn3/auth/authorisation/resources.py
index 095a72c..2c0b72b 100644
--- a/gn3/auth/authorisation/resources.py
+++ b/gn3/auth/authorisation/resources.py
@@ -3,6 +3,8 @@ from uuid import UUID, uuid4
 from typing import Sequence, NamedTuple
 
 from gn3.auth import db
+from gn3.auth.authentication.users import User
+
 from .checks import authorised_p
 from .exceptions import AuthorisationError
 from .groups import Group, authenticated_user_group
@@ -70,3 +72,7 @@ def public_resources(conn: db.DbConnection) -> Sequence[Resource]:
             Resource(groups[row[0]], UUID(row[1]), row[2], categories[row[3]],
                      bool(row[4]))
             for row in results)
+
+def user_resources(conn: db.DbConnection, user: User) -> Sequence[Resource]:# pylint: disable=[unused-argument]
+    """List the resources available to the user"""
+    return tuple()