Doc
This commit is contained in:
parent
1744428dd0
commit
57aa05bbce
@ -252,7 +252,7 @@ permissions can be granted to limit access to certain parts of the UI (and corre
|
|||||||
|
|
||||||
#### Superusers
|
#### Superusers
|
||||||
|
|
||||||
Superusers can access all parts of the front and backend application as well as any and all objects.
|
Superusers can access all parts of the front and backend application as well as any and all objects. Superuser status can only be granted by another superuser.
|
||||||
|
|
||||||
#### Admin Status
|
#### Admin Status
|
||||||
|
|
||||||
|
@ -5,6 +5,11 @@ from django.contrib.auth.models import User
|
|||||||
|
|
||||||
|
|
||||||
class PaperlessUserForm(forms.ModelForm):
|
class PaperlessUserForm(forms.ModelForm):
|
||||||
|
"""
|
||||||
|
Custom form for the User model that adds validation to prevent non-superusers
|
||||||
|
from changing the superuser status of a user.
|
||||||
|
"""
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = User
|
model = User
|
||||||
fields = [
|
fields = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user