Skip to content

Commit b508662

Browse files
committed
Update permissions docs
1 parent a7d50f6 commit b508662

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

docs/design/permissions.rst

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Roles are:
1212
* ``GUEST``
1313
Read-only access to objects within a group.
1414
* ``DEVELOPER``
15-
Read-write (manage) connections and transfer, read-only for other objects.
15+
Read-write (manage) connections, transfers and runs. Read-only for queues.
1616
* ``MAINTAINER`` (DevOps):
17-
Manage connections, transfers and queues.
17+
Manage connections, transfers, runs and queues.
1818
* ``OWNER`` (Product Owner)
19-
Manage connections, transfers, queues and user-group membership. Group can have only one maintainer.
19+
Manage connections, transfers, runs, queues and user-group membership. Group can have only one owner.
2020
* ``SUPERUSER`` (Admin)
2121
Meta role assigned to specific users, NOT within group. All permissions, including ability to create/delete groups.
2222
Superusers are created by :ref:`manage-superusers-cli`.
@@ -62,7 +62,7 @@ Add user to the group and delete
6262
---------------------------------
6363
Each user has the right to remove himself from a group, regardless of his role in the group.
6464

65-
.. list-table:: Rights to delete and add users to a group.
65+
.. list-table:: Rights to add/delete users to a group
6666
:header-rows: 1
6767

6868
* - Rule \ Role
@@ -84,10 +84,10 @@ Each user has the right to remove himself from a group, regardless of his role i
8484
- x
8585
- x
8686

87-
Transfers, Runs and Connections
88-
--------------------------------
87+
Transfers, and Connections
88+
--------------------------
8989

90-
.. list-table:: Right to work wirh Transfers, Runs and Connections repositories.
90+
.. list-table:: Right to work with Transfers and Connections within a group
9191
:header-rows: 1
9292

9393

@@ -116,10 +116,36 @@ Transfers, Runs and Connections
116116
- x
117117
- x
118118

119+
Runs
120+
----
121+
122+
.. list-table:: Right to work with Runs within a group
123+
:header-rows: 1
124+
125+
126+
* - Rule \ Role
127+
- Guest
128+
- Developer
129+
- Maintainer
130+
- Owner
131+
- Superuser
132+
* - READ
133+
- x
134+
- x
135+
- x
136+
- x
137+
- x
138+
* - CREATE (START), STOP
139+
-
140+
- x
141+
- x
142+
- x
143+
- x
144+
119145
Queues
120146
------
121147

122-
.. list-table:: Rights to read, delete and update queues.
148+
.. list-table:: Rights to work with Queues within a namespace
123149
:header-rows: 1
124150

125151
* - Rule \ Role

syncmaster/server/api/v1/runs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from syncmaster.server.dependencies import Stub
2424
from syncmaster.server.services.get_user import get_user
2525
from syncmaster.server.services.unit_of_work import UnitOfWork
26-
from syncmaster.server.settings import ServerAppSettings as Settings
2726

2827
router = APIRouter(tags=["Runs"], responses=get_error_responses())
2928

@@ -82,7 +81,6 @@ async def read_run(
8281
@router.post("/runs")
8382
async def start_run( # noqa: WPS217
8483
create_run_data: CreateRunSchema,
85-
settings: Annotated[Settings, Depends(Stub(Settings))],
8684
celery: Annotated[Celery, Depends(Stub(Celery))],
8785
unit_of_work: UnitOfWork = Depends(UnitOfWork),
8886
current_user: User = Depends(get_user(is_active=True)),

0 commit comments

Comments
 (0)