docs: add role description

This commit is contained in:
Takeshi Kimata
2024-06-01 21:27:48 +09:00
parent d987d822c4
commit d941b2a08e
9 changed files with 86 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
{
"label": "Architecuture",
"position": 3
"position": 4
}

View File

@@ -2,6 +2,6 @@
sidebar_position: 3
---
# DataBase
# ER diagram
![ER](./img/er.svg)
![ER](./img/er.svg)

View File

@@ -1,7 +1,7 @@
---
sidebar_position: 2
sidebar_position: 3
---
# Running TestPlat as a Docker container
##
Under development

View File

@@ -1,5 +1,5 @@
---
sidebar_position: 3
sidebar_position: 2
---
# Running TestPlat manually
@@ -24,7 +24,7 @@ Moves to backend directory, then install dependencies.
```bash
cd backend
npm ci
npm install
```
Initialize the database with the following command.
@@ -45,7 +45,7 @@ Moves to frontend directory, then install dependencies.
```bash
cd frontend
npm ci
npm install
```
Start frontend server

View File

@@ -6,5 +6,5 @@ sidebar_position: 1
TestPlat is designed for self-hosted use. There are two ways to self-host the application: “Manual” and “Docker”.
- Docker (Recommended)
- Manual
- Docker

View File

@@ -0,0 +1,4 @@
{
"label": "Usage",
"position": 3
}

67
docs/docs/usage/roles.md Normal file
View File

@@ -0,0 +1,67 @@
---
sidebar_position: 1
---
# Roles
There are two types of roles in LandTCMS: "Global roles" and "Project roles".
## Global roles
This role is tied to each user's information and affects the entire site, regardless of the project.
There are two types of roles:
- Administrator
- User
Administrators can manage site-wide settings and users from the “Administration” menu.
## Project roles
This role can be set for members participating in each project.
There are three types of roles:
- Manager
- Developer
- Reporter
### Permissions for each role
#### Project
| Action | Manager/Owner | Developer | Reporter | Not member |
| ------ | ------------- | --------- | -------- | ---------- |
| Delete | ✅ | ❌ | ❌ | ❌ |
| Update | ✅ | ❌ | ❌ | ❌ |
| Read | ✅ | ✅ | ✅ | 🌓 |
#### Project Members
| Action | Manager/Owner | Developer | Reporter | Not member |
| ----------- | ------------- | --------- | -------- | ---------- |
| Add | ✅ | ❌ | ❌ | ❌ |
| Delete | ✅ | ❌ | ❌ | ❌ |
| Change role | ✅ | ❌ | ❌ | ❌ |
| Read | ✅ | ✅ | ✅ | 🌓 |
#### Folders and Test cases
| Action | Manager/Owner | Developer | Reporter | Not member |
| ------ | ------------- | --------- | -------- | ---------- |
| Create | ✅ | ✅ | ❌ | ❌ |
| Delete | ✅ | ✅ | ❌ | ❌ |
| Update | ✅ | ✅ | ❌ | ❌ |
| Read | ✅ | ✅ | ✅ | 🌓 |
#### Test runs
| Action | Manager/Owner | Developer | Reporter | Not member |
| ------ | ------------- | --------- | -------- | ---------- |
| Create | ✅ | ✅ | ✅ | ❌ |
| Delete | ✅ | ✅ | ✅ | ❌ |
| Update | ✅ | ✅ | ✅ | ❌ |
| Read | ✅ | ✅ | ✅ | 🌓 |
1. "Owner" and "Not member" are not role. "Owner" is the user who created project.
"Not member" means a user who is not a project member
1. 🌓 means that read permission is only allowed if the project is set to public.