Skip to content

Commit 0939e70

Browse files
Disable user password change for non-admin user. #1926
1 parent 7c74b7c commit 0939e70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • web/pgadmin/browser/templates/browser/js

web/pgadmin/browser/templates/browser/js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ define('pgadmin.browser.utils',
123123
auth_source: '{{auth_source}}',
124124
gravatar: {% if config.SHOW_GRAVATAR_IMAGE %}'{{ username | gravatar }}'{% else %}''{% endif %},
125125
menus: [
126-
{% if auth_only_internal %}
126+
{% if auth_only_internal and is_admin %}
127127
{
128128
label: '{{ _('Change Password') }}',
129129
type: 'normal',

0 commit comments

Comments
 (0)