From 2eb42d4907181f54d839da5dc42c08b9cc5a3c52 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 18 Dec 2025 12:19:40 -0500 Subject: [PATCH] Fixes #20997: Enable creating permissions for the Owner model (#21009) --- netbox/users/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/users/constants.py b/netbox/users/constants.py index 6a997073c..dbb01df22 100644 --- a/netbox/users/constants.py +++ b/netbox/users/constants.py @@ -5,7 +5,7 @@ from django.db.models import Q OBJECTPERMISSION_OBJECT_TYPES = Q( ~Q(app_label__in=['account', 'admin', 'auth', 'contenttypes', 'sessions', 'taggit', 'users']) | - Q(app_label='users', model__in=['objectpermission', 'token', 'group', 'user']) + Q(app_label='users', model__in=['objectpermission', 'token', 'group', 'user', 'owner']) ) CONSTRAINT_TOKEN_USER = '$user'