Skip to content

Commit c3d8d06

Browse files
[Fixes #13010] fix needs auth function
1 parent 590e449 commit c3d8d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geonode/services/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def probe(self):
9595

9696
@property
9797
def needs_authentication(self):
98-
return self.password and self.username
98+
return self.password is not None and self.username is not None
9999

100100
def _get_service_url(self):
101101
parsed_url = urlparse(self.base_url)

0 commit comments

Comments
 (0)