Rocio
09/21/2021, 6:34 PMdef write_content(user, content_id, new_content):
is_allowed, zookie = content_change_check(content_id, user)
if is_allowed:
storage.write_content(contentd_id, new_content, zookie)
return success
return forbidden
But how would I retrieve the zookie for a new document if I don't yet have the content_id
? And how would I know if the user has access to write the content? Would I check if the user has access to the folder/account?