This commit is contained in:
Timothy Jaeryang Baek
2026-04-02 02:06:21 -05:00
parent 9d3e0637c8
commit 4632f200a9
4 changed files with 59 additions and 0 deletions
+9
View File
@@ -175,6 +175,15 @@ async def create_new_note(
detail=ERROR_MESSAGES.UNAUTHORIZED,
)
form_data.access_grants = filter_allowed_access_grants(
request.app.state.config.USER_PERMISSIONS,
user.id,
user.role,
form_data.access_grants,
'sharing.public_notes',
db=db,
)
try:
note = Notes.insert_new_note(user.id, form_data, db=db)
return note