diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bb1c1a2d..098d96e4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -78,6 +78,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Separate upload and download workers - Use direct file system writes if available on system - Move upload, download fetch calls to workers to reduce messaging overhead +- (GL #1145) Added new api for modifying write access from container's access control list ### Changed diff --git a/swift_browser_ui/ui/api.py b/swift_browser_ui/ui/api.py index 4e5b691cd..29dcea06b 100644 --- a/swift_browser_ui/ui/api.py +++ b/swift_browser_ui/ui/api.py @@ -685,8 +685,10 @@ async def remove_container_acl(request: aiohttp.web.Request) -> aiohttp.web.Resp raise aiohttp.web.HTTPNotFound() -async def modify_container_acl(request: aiohttp.web.Request) -> aiohttp.web.Response: - """Modify sharing permission from container acl.""" +async def modify_container_write_acl( + request: aiohttp.web.Request, +) -> aiohttp.web.Response: + """Modify write access for a project from container acl.""" session = await aiohttp_session.get_session(request) request.app["Log"].info( "API call to modify projects fom container ACL from " diff --git a/swift_browser_ui/ui/server.py b/swift_browser_ui/ui/server.py index 246ceeda7..f48685e8b 100644 --- a/swift_browser_ui/ui/server.py +++ b/swift_browser_ui/ui/server.py @@ -27,7 +27,7 @@ get_os_user, get_shared_container_address, get_upload_session, - modify_container_acl, + modify_container_write_acl, os_list_projects, remove_container_acl, remove_project_container_acl, @@ -245,7 +245,9 @@ async def on_prepare( "/api/access/{project}/{container}/{receiver}", remove_project_container_acl, ), - aiohttp.web.put("/api/access/{project}/{container}", modify_container_acl), + aiohttp.web.put( + "/api/access/{project}/{container}", modify_container_write_acl + ), aiohttp.web.get("/api/meta/{project}", swift_get_project_metadata), aiohttp.web.get( "/api/meta/{project}/{container}", swift_get_metadata_container