mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: various bugs + improve api readability
This commit is contained in:
parent
7daf6df5a0
commit
2bf80030d7
21 changed files with 98 additions and 75 deletions
|
|
@ -16,7 +16,7 @@ async def authorization_verify_if_element_is_public(
|
|||
element_uuid: str,
|
||||
action: Literal["read"],
|
||||
db_session: Session,
|
||||
):
|
||||
):
|
||||
element_nature = await check_element_type(element_uuid)
|
||||
# Verifies if the element is public
|
||||
if element_nature == ("courses" or "collections") and action == "read":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue