docs: personal repo group manual set instructions

This commit is contained in:
Marcin Kuzminski 2019-05-06 10:19:26 +02:00
parent 4607c07228
commit 0c0babac9c
9 changed files with 39 additions and 14 deletions

View file

@ -13,11 +13,12 @@ permissions applied to it; |perm|.
.. toctree::
public-access
default-user-perms
adding-anonymous-user
adding-new-user
setting-default-permissions
setting-usergroup-permissions
user_admin/public-access
user_admin/default-user-perms
user_admin/adding-anonymous-user
user_admin/adding-new-user
user_admin/setting-default-permissions
user_admin/setting-usergroup-permissions
user_admin/user-admin-tasks
.. |perm| replace:: **None**, **Read**, **Write**, or **Admin**
.. |perm| replace:: **None**, **Read**, **Write**, or **Admin**

View file

@ -0,0 +1,24 @@
.. _user-admin-tasks:
Common Admin Tasks for Users
----------------------------
Manually Set Personal Repository Group
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here is how to set a repository group as personal for a user using ishell.
.. code-block:: bash
# starts the ishell interactive prompt
$ rccontrol ishell enterprise-1
.. code-block:: python
In [1]: repo_group = RepoGroup.get_by_group_name('some_group_name')
In [2]: user = User.get_by_username('some_user')
In [3]: repo_group.user = user
In [4]: repo_group.personal = True
In [5]: Session().add(repo_group);Session().commit()

View file

@ -62,6 +62,13 @@ and commit files and |repos| while managing their security permissions.
code-review/code-review
integrations/integrations
.. toctree::
:maxdepth: 1
:caption: User Documentation
usage/basic-usage
tutorials/tutorials
.. toctree::
:maxdepth: 1
:caption: Developer Documentation
@ -71,13 +78,6 @@ and commit files and |repos| while managing their security permissions.
extensions/extensions-hooks
contributing/contributing
.. toctree::
:maxdepth: 1
:caption: User Documentation
usage/basic-usage
tutorials/tutorials
.. toctree::
:maxdepth: 1
:caption: About