This commit is contained in:
Timothy Jaeryang Baek
2026-04-21 15:41:07 +09:00
parent 5f76c250f8
commit c7b6de6ca4
+2 -2
View File
@@ -305,7 +305,7 @@ async def create_new_channel(
detail=ERROR_MESSAGES.UNAUTHORIZED, detail=ERROR_MESSAGES.UNAUTHORIZED,
) )
form_data.access_grants = filter_allowed_access_grants( form_data.access_grants = await filter_allowed_access_grants(
request.app.state.config.USER_PERMISSIONS, request.app.state.config.USER_PERMISSIONS,
user.id, user.id,
user.role, user.role,
@@ -643,7 +643,7 @@ async def update_channel_by_id(
if channel.user_id != user.id and user.role != 'admin': if channel.user_id != user.id and user.role != 'admin':
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT()) raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT())
form_data.access_grants = filter_allowed_access_grants( form_data.access_grants = await filter_allowed_access_grants(
request.app.state.config.USER_PERMISSIONS, request.app.state.config.USER_PERMISSIONS,
user.id, user.id,
user.role, user.role,