diff --git a/netbox/utilities/templatetags/perms.py b/netbox/utilities/templatetags/perms.py index 2c14da9b70d..7e804493c1b 100644 --- a/netbox/utilities/templatetags/perms.py +++ b/netbox/utilities/templatetags/perms.py @@ -24,8 +24,9 @@ def can_view(user, instance): @register.filter() -def can_add(user, instance): - return _check_permission(user, instance, 'add') +def can_add(user, model): + permission = get_permission_for_model(model, 'add') + return user.has_perm(perm=permission) @register.filter()