mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
refac
This commit is contained in:
@@ -156,7 +156,9 @@ class NoteTable:
|
|||||||
permitted = True
|
permitted = True
|
||||||
# Fast-pass #2: public/open
|
# Fast-pass #2: public/open
|
||||||
elif note.access_control is None:
|
elif note.access_control is None:
|
||||||
permitted = True
|
# Technically this should mean public access for both read and write, but we'll only do read for now
|
||||||
|
# We might want to change this behavior later
|
||||||
|
permitted = permission == "read"
|
||||||
else:
|
else:
|
||||||
permitted = has_access(
|
permitted = has_access(
|
||||||
user_id, permission, note.access_control, user_group_ids
|
user_id, permission, note.access_control, user_group_ids
|
||||||
|
|||||||
Reference in New Issue
Block a user