mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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 <stsymbal@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
@@ -472,6 +472,17 @@ idviews.id_override_user_details_facet = function(spec) {
|
|||||||
that.refresh();
|
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;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user