mirror of https://github.com/portainer/portainer
fix(ACI): At least one team or user should be specified when creating a restricted container in Azure ACI EE-578 (#5204)
Co-authored-by: Simon Meng <simon.meng@portainer.io>pull/5205/head
parent
60ef6d0270
commit
5466e68f50
|
@ -8,7 +8,8 @@ angular.module('portainer.azure').controller('AzureCreateContainerInstanceContro
|
||||||
'Notifications',
|
'Notifications',
|
||||||
'Authentication',
|
'Authentication',
|
||||||
'ResourceControlService',
|
'ResourceControlService',
|
||||||
function ($q, $scope, $state, AzureService, Notifications, Authentication, ResourceControlService) {
|
'FormValidator',
|
||||||
|
function ($q, $scope, $state, AzureService, Notifications, Authentication, ResourceControlService, FormValidator) {
|
||||||
var allResourceGroups = [];
|
var allResourceGroups = [];
|
||||||
var allProviders = [];
|
var allProviders = [];
|
||||||
|
|
||||||
|
@ -70,6 +71,11 @@ angular.module('portainer.azure').controller('AzureCreateContainerInstanceContro
|
||||||
return 'At least one port binding is required';
|
return 'At least one port binding is required';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const error = FormValidator.validateAccessControl(model.AccessControlData, Authentication.isAdmin());
|
||||||
|
if (error !== '') {
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue