mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 13:46:54 +00:00
commit
a955d5dcb8
@ -13,7 +13,13 @@ The admin interface allows *staff* users the ability to directly view / add / ed
|
|||||||
|
|
||||||
### Access Admin Interface
|
### Access Admin Interface
|
||||||
|
|
||||||
To access the admin interface, select the "Admin" option from the drop-down user menu in the top-right corner of the screen. You will be presented with an adminstation panel as shown below:
|
To access the admin interface, select the "Admin" option from the drop-down user menu in the top-right corner of the screen.
|
||||||
|
|
||||||
|
|
||||||
|
!!! info "Staff Only"
|
||||||
|
Only users with staff acccess will be able to see the "Admin" option
|
||||||
|
|
||||||
|
An adminstation panel will be presented as shown below:
|
||||||
|
|
||||||
{% with id="admin", url="admin/admin.png", description="InvenTree Admin Panel" %}
|
{% with id="admin", url="admin/admin.png", description="InvenTree Admin Panel" %}
|
||||||
{% include 'img.html' %}
|
{% include 'img.html' %}
|
||||||
@ -27,6 +33,9 @@ Database objects can be listed and filtered directly. The image below shows an e
|
|||||||
{% include 'img.html' %}
|
{% include 'img.html' %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
!!! info "Permissions"
|
||||||
|
A "staff" account does not necessarily provide access to all administration options, depending on the roles assigned to the user.
|
||||||
|
|
||||||
#### Filtering
|
#### Filtering
|
||||||
|
|
||||||
Some admin views support filtering of results against specified criteria. For example, the list of Part objects can be filtered as follows:
|
Some admin views support filtering of results against specified criteria. For example, the list of Part objects can be filtered as follows:
|
||||||
|
@ -4,7 +4,7 @@ title: Exporting Data
|
|||||||
|
|
||||||
## Exporting Data
|
## Exporting Data
|
||||||
|
|
||||||
The [Admin Interface](../admin) provides powerful data exporting capability. When displaying a list of items which support exporting (e.g. Part objects), select the "Export" button from the top-right corner:
|
The Admin Interface provides powerful data exporting capability. When displaying a list of items which support exporting (e.g. Part objects), select the "Export" button from the top-right corner:
|
||||||
|
|
||||||
{% with id="export", url="admin/export.png", description="Data export" %}
|
{% with id="export", url="admin/export.png", description="Data export" %}
|
||||||
{% include 'img.html' %}
|
{% include 'img.html' %}
|
||||||
|
@ -4,55 +4,46 @@ title: User Permissions
|
|||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
|
|
||||||
!!! warning "TODO"
|
InvenTree provides access control to various features and data, by assigning each *user* to one (or more) *groups* which have multiple *roles* assigned.
|
||||||
This section requires further work - in particular screenshots!
|
|
||||||
|
|
||||||
InvenTree provides a permission system which allows authority control on a user or group basis.
|
!!! info "Superuser"
|
||||||
|
The superuser account is afforded *all* permissions across an InvenTree intallation. This includes the admin interface, web interface, and API.
|
||||||
|
|
||||||
!!! info "Django Permissions"
|
### User
|
||||||
InvenTree implements the django permissions system. For background reading, refer to the [django permissions documentation](https://docs.djangoproject.com/en/3.1/topics/auth/default/#permissions-and-authorization).
|
|
||||||
|
|
||||||
Permissions can be assigned for each model in the InvenTree database. The following permission classes are available for each model (or "table") in the database:
|
A *user* is a single unique account with login credentials. By default, a user is not afforded *any* permissions, and the user must be assigned to the relevent group for the permissions to be assigned.
|
||||||
|
|
||||||
### View
|
### Group
|
||||||
|
|
||||||
Users with the *View* permission for a particular model will be able to view data associated with the model.
|
A *group* is a named set of zero or more users. Each group is assigned permissions against each possible role.
|
||||||
|
|
||||||
*For example, a user who has the View permission set for the PurchaseOrder model will be able to view purchase orders.*
|
### Role
|
||||||
|
|
||||||
### Add
|
A *role* is a set of distinct permissions linked to a given subset of InvenTree functionality (more on this below).
|
||||||
|
|
||||||
Users with the *Add* permission for a particular model will be able to add (create) new instances of that model.
|
## Roles
|
||||||
|
|
||||||
*For example, a user who has the Add permission set for the StockItem model will be able to add / create new stock item objects.*
|
InvenTree functionality is split into a number of distinct roles. A group will have a set of permissions assigned to each of the following roles:
|
||||||
|
|
||||||
### Edit
|
- **Admin** - The *admin* role is related to assigning user permissions.
|
||||||
|
- **Part** - The *part* role is related to accessing Part data
|
||||||
|
- **Stock** - The *stock* role is related to accessing Stock data
|
||||||
|
- **Build** - The *build* role is related to accessing Build Order and Bill of Materials data
|
||||||
|
- **Purchase** - The *purchase* role is related to accessing Purchase Order data
|
||||||
|
- **Sales** - The *sales* role is related to accessing Sales Order data
|
||||||
|
|
||||||
Users with the *Edit* permissions for a particular model will be able to edit (adjust) instances of that model.
|
{% with id="roles", url="admin/roles.png", description="Roles" %}
|
||||||
|
{% include 'img.html' %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
*For example, a user who has the Edit permission set for the Build model will be able to edit Build items.*
|
### Role Permissions
|
||||||
|
|
||||||
### Delete
|
Within each role, there are four levels of available permissions:
|
||||||
|
|
||||||
Users with the *Delete* permission for a particular model will be able to delete instances of that model.
|
- **View** - The *view* permission allows viewing of content related to the particular role
|
||||||
|
- **Change** - The *change* permission allows the user to edit / alter / change data associated with the particular role
|
||||||
## Superuser Account
|
- **Add** - The *add* permission allows the user to add / create database records associated with the particular role
|
||||||
|
- **Delete** - The *delete* permission allows the user to delete / remove database records associated with the particular role
|
||||||
The *superuser* account (normally the first user created when configuring the database) automatically has every assigned permission.
|
|
||||||
|
|
||||||
## Assigning Permissions
|
|
||||||
|
|
||||||
The *superuser* account can assign model permissions to any users or groups.
|
|
||||||
|
|
||||||
Additionally, any users who have permissions to edit the *Users* table can also adjust these permissions.
|
|
||||||
|
|
||||||
### User Permissions
|
|
||||||
|
|
||||||
User permissions allow model permissions to be assigned on a single user basis. This is useful if you wish to finely control which InvenTree features a certain user can access.
|
|
||||||
|
|
||||||
### Group Permissions
|
|
||||||
|
|
||||||
Group permissions allow model permissions to be assigned to a *group* of users which greatly simplifies the task of assigning similar permissions to multiple users.
|
|
||||||
|
|
||||||
## Admin Interface Permissions
|
## Admin Interface Permissions
|
||||||
|
|
||||||
|
BIN
docs/assets/images/admin/roles.png
Normal file
BIN
docs/assets/images/admin/roles.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
docs/assets/images/admin/users_groups.png
Normal file
BIN
docs/assets/images/admin/users_groups.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
10
mkdocs.yml
10
mkdocs.yml
@ -13,13 +13,14 @@ theme:
|
|||||||
name: material
|
name: material
|
||||||
custom_dir: _includes/overrides
|
custom_dir: _includes/overrides
|
||||||
palette:
|
palette:
|
||||||
scheme: slate
|
scheme: default
|
||||||
logo: assets/logo.png
|
logo: assets/logo.png
|
||||||
favicon: assets/favicon.ico
|
favicon: assets/favicon.ico
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github
|
repo: fontawesome/brands/github
|
||||||
features:
|
features:
|
||||||
- tabs
|
- tabs
|
||||||
|
- toc.autohide
|
||||||
edit_uri: "" # Disable "Edit" button
|
edit_uri: "" # Disable "Edit" button
|
||||||
extra_css:
|
extra_css:
|
||||||
- stylesheets/extra.css
|
- stylesheets/extra.css
|
||||||
@ -28,7 +29,8 @@ extra_javascript:
|
|||||||
|
|
||||||
# Navigation
|
# Navigation
|
||||||
nav:
|
nav:
|
||||||
- Home: index.md
|
- InvenTree:
|
||||||
|
- About InvenTree: index.md
|
||||||
- Contribute: contribute.md
|
- Contribute: contribute.md
|
||||||
- Getting Started:
|
- Getting Started:
|
||||||
- Installation: start/install.md
|
- Installation: start/install.md
|
||||||
@ -36,7 +38,6 @@ nav:
|
|||||||
- Deploying: start/deploy.md
|
- Deploying: start/deploy.md
|
||||||
- Updating: start/update.md
|
- Updating: start/update.md
|
||||||
- Migrating: start/migrate.md
|
- Migrating: start/migrate.md
|
||||||
- Color Themes: start/themes.md
|
|
||||||
- Parts:
|
- Parts:
|
||||||
- Parts: part/part.md
|
- Parts: part/part.md
|
||||||
- Part Views: part/views.md
|
- Part Views: part/views.md
|
||||||
@ -69,6 +70,7 @@ nav:
|
|||||||
- API: extend/api.md
|
- API: extend/api.md
|
||||||
- Python Interface: extend/python.md
|
- Python Interface: extend/python.md
|
||||||
- Plugins: extend/plugins.md
|
- Plugins: extend/plugins.md
|
||||||
|
- Themes: extend/themes.md
|
||||||
- Third-Party: extend/integrate.md
|
- Third-Party: extend/integrate.md
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
@ -89,7 +91,7 @@ markdown_extensions:
|
|||||||
# emoji_index: !!python/name:materialx.emoji.twemoji
|
# emoji_index: !!python/name:materialx.emoji.twemoji
|
||||||
# emoji_generator: !!python/name:materialx.emoji.to_svg
|
# emoji_generator: !!python/name:materialx.emoji.to_svg
|
||||||
- toc:
|
- toc:
|
||||||
permalink: ⚓
|
permalink: true
|
||||||
|
|
||||||
# Global Variables
|
# Global Variables
|
||||||
extra:
|
extra:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user