Skip to content

Commit f01e184

Browse files
committed
Add member scope ao auth middleware.
1 parent f72986a commit f01e184

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/middleware/auth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ async def authenticate(self, conn: HTTPConnection) -> tuple[AuthCredentials, Use
7373
if user.websockets:
7474
scopes.append('websockets')
7575

76+
if user.member:
77+
scopes.append('member')
78+
7679
if user.admin:
7780
scopes.append('admin')
7881

0 commit comments

Comments
 (0)