mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-15 02:43:17 +02:00
Fix video embed streaming, permission inheritance in create dialogs, and default to Guest browsing
This commit is contained in:
1 parent
24a6d83ea0
commit
16787aba14
7 files changed
+94
-20
No files matched your search
@@ -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] = []
|
||||
|
||||
Reference in new issue
Block a user