mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-30 00:49:38 +02:00
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:
parent
0a828379be
commit
5cb4f83afa
3 changed files with 2 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ _READER_CAPS = {
|
|||
"collections:read",
|
||||
"knowledge:read",
|
||||
"keys:self",
|
||||
"workspaces:list-own",
|
||||
}
|
||||
|
||||
_WRITER_CAPS = _READER_CAPS | {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue