allow removeal of accessall users on groups

This commit is contained in:
Kyle Spearrin 2018-07-10 08:42:15 -04:00
parent 5ade229cb9
commit 137bb3a4c2
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
</td>
<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"
[appApiAction]="actionPromise" *ngIf="!u.accessAll">
[appApiAction]="actionPromise" *ngIf="entity !== 'collection' || !u.accessAll">
<i class="fa fa-spinner fa-spin"></i>
<span>{{'remove' | i18n}}</span>
</button>

View File

@ -58,7 +58,7 @@ export class EntityUsersComponent implements OnInit {
}
async remove(user: any) {
if (this.actionPromise != null || user.accessAll) {
if (this.actionPromise != null || (this.entity === 'collection' && user.accessAll)) {
return;
}