allow removeal of accessall users on groups
This commit is contained in:
parent
5ade229cb9
commit
137bb3a4c2
|
@ -40,7 +40,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="table-list-options wider">
|
<td class="table-list-options wider">
|
||||||
<button type="button" class="btn btn-sm btn-outline-danger btn-submit" (click)="remove(u)" #removeBtn appBlurClick [disabled]="removeBtn.loading"
|
<button type="button" class="btn btn-sm btn-outline-danger btn-submit" (click)="remove(u)" #removeBtn appBlurClick [disabled]="removeBtn.loading"
|
||||||
[appApiAction]="actionPromise" *ngIf="!u.accessAll">
|
[appApiAction]="actionPromise" *ngIf="entity !== 'collection' || !u.accessAll">
|
||||||
<i class="fa fa-spinner fa-spin"></i>
|
<i class="fa fa-spinner fa-spin"></i>
|
||||||
<span>{{'remove' | i18n}}</span>
|
<span>{{'remove' | i18n}}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -58,7 +58,7 @@ export class EntityUsersComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
async remove(user: any) {
|
async remove(user: any) {
|
||||||
if (this.actionPromise != null || user.accessAll) {
|
if (this.actionPromise != null || (this.entity === 'collection' && user.accessAll)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue