Skip to content

Commit 74b55ee

Browse files
authored
Merge pull request #8566 from ProcessMaker/bugfix/FOUR-26588
[Regression] SAML admin users prompted for password when updating user details
2 parents ae27fd4 + f98013b commit 74b55ee

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

resources/lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@
773773
"Element is not connected": "Element is not connected",
774774
"Element": "Element",
775775
"Email Address": "Email Address",
776+
"Email address for users created via SAML synchronization cannot be edited manually.": "Email address for users created via SAML synchronization cannot be edited manually.",
776777
"Email": "Email",
777778
"Embed Media": "Embed Media",
778779
"Embed URL": "Embed URL",

resources/views/admin/users/edit.blade.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,16 @@
478478
}
479479
return true
480480
},
481+
481482
profileUpdate($event) {
482-
if(this.emailHasChanged && !this.ssoUser) {
483-
$('#validateModal').modal('show');
483+
if (this.emailHasChanged) {
484+
if (this.ssoUser) {
485+
let message = 'Email address for users created via SAML synchronization cannot be edited manually.';
486+
ProcessMaker.alert(this.$t(message), 'warning');
487+
return;
488+
} else {
489+
$('#validateModal').modal('show');
490+
}
484491
} else {
485492
this.saveProfileChanges();
486493
}

resources/views/profile/edit.blade.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,14 @@
192192
modalVueInstance.$refs.updateAvatarModal.show();
193193
},
194194
profileUpdate() {
195-
if(this.emailHasChanged && !this.ssoUser) {
196-
$('#validateModal').modal('show');
195+
if(this.emailHasChanged) {
196+
if (this.ssoUser) {
197+
let message = 'Email address for users created via SAML synchronization cannot be edited manually.';
198+
ProcessMaker.alert(this.$t(message), 'warning');
199+
return;
200+
} else {
201+
$('#validateModal').modal('show');
202+
}
197203
} else {
198204
this.saveProfileChanges();
199205
}

0 commit comments

Comments
 (0)