fix(docs): fixed docs build

This commit is contained in:
RhodeCode Admin 2023-12-20 12:53:43 +01:00
parent 4d51dc13c8
commit 8561b8b8e2

View file

@ -80,8 +80,9 @@ the permissions onto *all* repositories and/or repository groups.
2a) Add user called 'admin' into all repositories with write permission.
Permissions can be also `repository.read`, `repository.admin`, `repository.none`
.. code-block:: python
:dedent: 1
:dedent:
In [1]: from rhodecode.model.repo import RepoModel
In [2]: user = User.get_by_username('admin')
@ -94,7 +95,7 @@ the permissions onto *all* repositories and/or repository groups.
Permissions can be also can be `group.read`, `group.admin`, `group.none`
.. code-block:: python
:dedent: 1
:dedent:
In [1]: from rhodecode.model.repo import RepoModel
In [2]: user = User.get_by_username('admin')
@ -108,7 +109,7 @@ Delete a problematic pull request
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code-block:: python
:dedent: 1
:dedent:
In [1]: from rhodecode.model.pull_request import PullRequestModel
In [2]: pullrequest_id = 123