URL: https://github.com/freeipa/freeipa/pull/3324 Author: serg-cymbaluk Title: #3324: [Backport][ipa-4-7] WebUI: Fix 'user not found' traceback on user ID override details page Action: opened
PR body: """ This PR was opened automatically because PR #3261 was pushed to master and backport to ipa-4-7 is required. """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/3324/head:pr3324 git checkout pr3324
From 5751fcb162b9d06dd2e12c1ffb36f08d02bdef48 Mon Sep 17 00:00:00 2001 From: Serhii Tsymbaliuk <[email protected]> Date: Wed, 12 Jun 2019 13:27:16 +0200 Subject: [PATCH] WebUI: Fix 'user not found' traceback on user ID override details page Disable link to user page from user ID override in case it is in 'Default Trust View' Ticket: https://pagure.io/freeipa/issue/7139 Signed-off-by: Serhii Tsymbaliuk <[email protected]> --- install/ui/src/freeipa/idviews.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install/ui/src/freeipa/idviews.js b/install/ui/src/freeipa/idviews.js index 285f6d7d1e..35dc998c8f 100644 --- a/install/ui/src/freeipa/idviews.js +++ b/install/ui/src/freeipa/idviews.js @@ -472,6 +472,17 @@ idviews.id_override_user_details_facet = function(spec) { that.refresh(); }; + that.load = function(data) { + var is_trust_view = that.get_pkeys()[0] === idviews.DEFAULT_TRUST_VIEW; + var widget = that.fields.get_field('ipaanchoruuid').widget; + + // Disable link for AD users + widget.no_check = is_trust_view; + widget.is_link = !is_trust_view; + + that.details_facet_load(data); + }; + return that; };
_______________________________________________ FreeIPA-devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/[email protected]
