mirror of https://github.com/rancher/ui.git
Clear apids on disable and only add me if user list is empty
This commit is contained in:
parent
51bfe11cf0
commit
c65c329731
|
|
@ -104,7 +104,7 @@ export default Component.extend({
|
|||
}
|
||||
});
|
||||
|
||||
if ( !found ) {
|
||||
if ( !found && !allowedPrincipals.length) {
|
||||
allowedPrincipals.pushObject(get(this, 'access.principal.id'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,8 @@ export default Mixin.create({
|
|||
|
||||
setProperties(model, {
|
||||
enabled: false,
|
||||
accessMode: 'unrestricted'
|
||||
accessMode: 'unrestricted',
|
||||
allowedPrincipalIds: []
|
||||
});
|
||||
|
||||
model.doAction('disable').then(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue