fix: list-my-workspaces permissions were broken (#1002)

list-my-workspaces has AUTHENTICATED scope, so anyone is permitted
to run the operation.  No specific permission grant is needed.
This commit is contained in:
cybermaggedon 2026-06-29 09:13:05 +01:00 committed by GitHub
parent 0a828379be
commit 5cb4f83afa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 4 deletions

View file

@ -311,7 +311,7 @@ register(Operation(
))
register(Operation(
name="list-my-workspaces",
capability="workspaces:list-own",
capability=AUTHENTICATED,
resource_level=ResourceLevel.SYSTEM,
extract_resource=_empty_resource,
extract_parameters=_no_parameters,

View file

@ -78,7 +78,6 @@ _READER_CAPS = {
"collections:read",
"knowledge:read",
"keys:self",
"workspaces:list-own",
}
_WRITER_CAPS = _READER_CAPS | {