mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
adding "admin_role" as a default query param for insights cred lookup
This commit is contained in:
@@ -743,6 +743,7 @@ function($injector, $stateExtender, $log, i18n) {
|
|||||||
else if(field.sourceModel === "insights_credential"){
|
else if(field.sourceModel === "insights_credential"){
|
||||||
params = {
|
params = {
|
||||||
page_size: '5',
|
page_size: '5',
|
||||||
|
role_level: 'admin_role',
|
||||||
credential_type: null
|
credential_type: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -854,6 +855,7 @@ function($injector, $stateExtender, $log, i18n) {
|
|||||||
$stateParams[`${list.iterator}_search`].organization = OrganizationId;
|
$stateParams[`${list.iterator}_search`].organization = OrganizationId;
|
||||||
}
|
}
|
||||||
if(list.iterator === "insights_credential"){
|
if(list.iterator === "insights_credential"){
|
||||||
|
$stateParams[`${list.iterator}_search`].role_level = "admin_role";
|
||||||
$stateParams[`${list.iterator}_search`].credential_type = InsightsCredTypePK.toString() ;
|
$stateParams[`${list.iterator}_search`].credential_type = InsightsCredTypePK.toString() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user