Skip to content

Commit 0403079

Browse files
committed
1) Fixed an issue where the Cancel button did not work when attempting to delete a user from the User Management.
2) Fixed an issue where automatic user creation via LDAP failed if an existing Internal user with the same username was already present.
1 parent 97984eb commit 0403079

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

docs/en_US/release_notes_9_4.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Bug fixes
3131
*********
3232

3333
| `Issue #6564 <https://github.com/pgadmin-org/pgadmin4/issues/6564>`_ - Fix the issue where an error is displayed when a table is dropped while a query is running.
34+
| `Issue #8595 <https://github.com/pgadmin-org/pgadmin4/issues/8595>`_ - Enhance contrast for selected and hovered items in the Object Explorer to improve visibility and accessibility.
3435
| `Issue #8607 <https://github.com/pgadmin-org/pgadmin4/issues/8607>`_ - Fixed an issue where the query tool returns "cannot unpack non-iterable Response object" when running any query with a database name change.
3536
| `Issue #8668 <https://github.com/pgadmin-org/pgadmin4/issues/8668>`_ - Implement API fetch error display for select dropdown.
3637
| `Issue #8713 <https://github.com/pgadmin-org/pgadmin4/issues/8713>`_ - Fixed issues related to column range selection using shift + click.

web/pgadmin/authenticate/ldap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ def __auto_create_user(self, user_email):
187187
"""Add the ldap user to the internal SQLite database."""
188188
if config.LDAP_AUTO_CREATE_USER:
189189
if config.LDAP_DN_CASE_SENSITIVE:
190-
user = User.query.filter_by(username=self.username).first()
190+
user = User.query.filter_by(username=self.username,
191+
auth_source=LDAP).first()
191192
else:
192-
user = User.query.filter(
193-
func.lower(User.username) == func.lower(
194-
self.username)).first()
193+
user = User.query.filter_by(username=func.lower(self.username),
194+
auth_source=LDAP).first()
195195

196196
if user is None:
197197
create_msg = ("Creating user {0} with email {1} "

web/pgadmin/static/js/helpers/ModalProvider.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function confirmDelete(title, text, onDeleteClick, onCancelClick, deleteLabel =
106106
title,
107107
(closeModal)=>{
108108
const handleOkClose = (callback) => {
109-
callback();
109+
callback?.();
110110
closeModal();
111111
};
112112
return (

0 commit comments

Comments
 (0)