diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js index f667309a7f067195b5fc9d126e3e6a369fcc58c4..638a011169de56de25aaa2d06c58ceada214061e 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js @@ -241,6 +241,7 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) { } if(profile.mainMenu.showUserProfile) { + // && profile.isFileAuthenticationService && profile.isFileAuthenticationUser     var userProfileLink = _this.getLinkForNode("User Profile", "USER_PROFILE", "showUserProfilePage", null);     treeModelUtils.push({ title : userProfileLink, entityType: "USER_PROFILE", key : "USER_PROFILE", folder : false, lazy : false, view : "showUserProfilePage", icon : "glyphicon glyphicon-user" }); } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileController.js index 74c870c9621ff3375bbb3817d4d63ead3cee369c..23102d6a6d648940160f75935ed7637c4a70c069 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileController.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileController.js @@ -69,4 +69,9 @@ function UserProfileController(mainController, mode) { return errors; } + this.isFileAuthentication = function() { + return this._mainController.profile.isFileAuthenticationService && + this._mainController.profile.isFileAuthenticationUser; + } + } \ No newline at end of file diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileView.js index 22e972b17ff4a1c0ed7cd41180acf7d7211b6d91..c62644afa24a64775707bac7880390024b097ab0 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserProfile/UserProfileView.js @@ -72,7 +72,8 @@ function UserProfileView(userProfileController, userProfileModel) { this._$emailInput.val(getUserInformation.email); $formColumn.append(this._getFormGroup(this._$emailInput, "Email:")); // disable in view mode - if (this._userProfileModel.mode === FormMode.VIEW) { + if (this._userProfileModel.mode === FormMode.VIEW || + !this._userProfileController.isFileAuthentication()) { this._$firstNameInput.prop("disabled", true); this._$lastNameInput.prop("disabled", true); this._$emailInput.prop("disabled", true);