summaryrefslogtreecommitdiff
path: root/sw/users.py
diff options
context:
space:
mode:
Diffstat (limited to 'sw/users.py')
-rw-r--r--sw/users.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/users.py b/sw/users.py
index 724965e..dffae93 100644
--- a/sw/users.py
+++ b/sw/users.py
@@ -1,9 +1,10 @@
-from flask import Blueprint, jsonify, url_for, request
+from flask import Blueprint, jsonify, url_for, request, abort
import json
from sw.db import get_db
from sw.time import now
+from sw.auth import specific_user_required
bp = Blueprint("users", __name__, url_prefix="/u")
@@ -36,6 +37,7 @@ def get_user_info(username):
@bp.route("/<username>/inbox")
+@specific_user_required
def get_user_inbox(username):
db = get_db()