Allow existing NAS photo read group and reject unreadable catalogs
This commit is contained in:
@@ -157,6 +157,15 @@ class PhotoSources:
|
||||
"Photo directory is unavailable; check its read-only mount",
|
||||
404,
|
||||
)
|
||||
try:
|
||||
with os.scandir(directory):
|
||||
pass
|
||||
except PermissionError:
|
||||
raise FlowError(
|
||||
E.FORBIDDEN,
|
||||
"Photo directory is not readable; configure the container's existing NAS read group",
|
||||
403,
|
||||
) from None
|
||||
return directory
|
||||
|
||||
def headers(self, source):
|
||||
|
||||
Reference in New Issue
Block a user