mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: re-apply public elements fix
This commit is contained in:
parent
a7e2bda41e
commit
53c8c6046f
2 changed files with 3 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ async def authorization_verify_if_element_is_public(
|
|||
if element_nature == "courses":
|
||||
print("looking for course")
|
||||
statement = select(Course).where(
|
||||
Course.public is True, Course.course_uuid == element_uuid
|
||||
Course.public == True, Course.course_uuid == element_uuid
|
||||
)
|
||||
course = db_session.exec(statement).first()
|
||||
if course:
|
||||
|
|
@ -33,7 +33,7 @@ async def authorization_verify_if_element_is_public(
|
|||
|
||||
if element_nature == "collections":
|
||||
statement = select(Collection).where(
|
||||
Collection.public is True, Collection.collection_uuid == element_uuid
|
||||
Collection.public == True, Collection.collection_uuid == element_uuid
|
||||
)
|
||||
collection = db_session.exec(statement).first()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue