Fix video embed streaming, permission inheritance in create dialogs, and default to Guest browsing

This commit is contained in:
sarah committed 2026-09-28 23:28:32 +02:00
1 parent 24a6d83ea0
commit 16787aba14
7 files changed
+94 -20

No files matched your search

+7
View File
@@ -52,6 +52,7 @@ from Groups import (
SetGroupMembers,
)
from Locks import (
GetInheritedLock,
GetLockForPath,
IsPathAccessible,
LoadLocks,
@@ -332,6 +333,12 @@ def GetLockEndpoint(Root: str, Path: str, CurrentUser: dict = Depends(GetCurrent
return GetLockForPath(Root, Path) or {}
@Application.get("/api/lock/inherited")
def GetInheritedLockEndpoint(Root: str, Path: str, CurrentUser: dict = Depends(GetCurrentUser)) -> dict:
RequirePathAccessible(Root, Path, CurrentUser)
return GetInheritedLock(Root, Path) or {}
class SetLockRequest(BaseModel):
Users: list[str] = []
Groups: list[str] = []