Skip to content

Commit 09cf492

Browse files
Merge pull request #3419 from DefectDojo/release/1.10.4
Release: Merge release into master from: release/1.10.4
2 parents b48df9e + aee2973 commit 09cf492

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "DefectDojo",
3-
"version": "1.10.3",
3+
"version": "1.10.4",
44
"dependencies": {
55
"JUMFlot": "jumjum123/JUMFlot#*",
66
"bootstrap": "^3.4.0",

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
default_app_config = 'dojo.apps.DojoAppConfig'
88

9-
__version__ = '1.10.3'
9+
__version__ = '1.10.4'
1010
__url__ = 'https://github.com/DefectDojo/django-DefectDojo'
1111
__docs__ = 'http://defectdojo.readthedocs.io/'

dojo/filters.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,17 @@ def __init__(self, *args, **kwargs):
12571257
Q(authorized_users__in=[self.user]) |
12581258
Q(prod_type__authorized_users__in=[self.user])).distinct().order_by('name')
12591259

1260+
@property
1261+
def qs(self):
1262+
parent = super(EndpointFilter, self).qs
1263+
if get_current_user() and not get_current_user().is_staff:
1264+
return parent.filter(
1265+
Q(product__authorized_users__in=[get_current_user()]) |
1266+
Q(product__prod_type__authorized_users__in=[get_current_user()])
1267+
)
1268+
else:
1269+
return parent
1270+
12601271
class Meta:
12611272
model = Endpoint
12621273
exclude = ['mitigated', 'endpoint_status']

helm/defectdojo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: "1.10.3"
2+
appVersion: "1.10.4"
33
description: A Helm chart for Kubernetes to installs DefectDojo
44
name: defectdojo
55
version: 1.4.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='DefectDojo',
7-
version='1.10.3',
7+
version='1.10.4',
88
author='Greg Anderson',
99
description="Tool for managing vulnerability engagements",
1010
install_requires=[

0 commit comments

Comments
 (0)