mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: frontend create & delete collections
This commit is contained in:
parent
bca6c3000a
commit
ce785fd078
6 changed files with 255 additions and 9 deletions
|
|
@ -238,7 +238,7 @@ async def verify_rights(course_id: str, current_user: PublicUser, action: str):
|
|||
|
||||
if not course:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_409_CONFLICT, detail=f"Course/CourseChapter does not exist")
|
||||
status_code=status.HTTP_409_CONFLICT, detail=f"Course does not exist")
|
||||
|
||||
hasRoleRights = await verify_user_rights_with_roles(action, current_user.user_id, course_id)
|
||||
isAuthor = current_user.user_id in course["authors"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue