This commit is contained in:
shamoon 2025-01-20 11:23:54 -08:00
parent 1744428dd0
commit 57aa05bbce
2 changed files with 6 additions and 1 deletions

View File

@ -252,7 +252,7 @@ permissions can be granted to limit access to certain parts of the UI (and corre
#### 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

View File

@ -5,6 +5,11 @@ from django.contrib.auth.models import User
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:
model = User
fields = [