Skip to content

Commit b8d7267

Browse files
committed
consolidate acl type vs rule check
1 parent 33e8717 commit b8d7267

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

netbox_acls/forms/models.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,7 @@ def clean(self):
243243
if (
244244
acl_type == ACLTypeChoices.TYPE_EXTENDED
245245
and self.instance.aclstandardrules.exists()
246-
):
247-
error_message["type"] = [
248-
"This ACL has ACL rules associated, CANNOT change ACL type.",
249-
]
250-
elif (
246+
) or (
251247
acl_type == ACLTypeChoices.TYPE_STANDARD
252248
and self.instance.aclextendedrules.exists()
253249
):

0 commit comments

Comments
 (0)