Fixed where you couldn't bulk edit the limits to 0 #2318

This commit is contained in:
Jamie 2018-07-26 16:05:36 +01:00
commit e172c94225

View file

@ -80,10 +80,10 @@ export class UserManagementComponent implements OnInit {
if(anyRoles) {
x.claims = this.availableClaims;
}
if(this.bulkEpisodeLimit && this.bulkEpisodeLimit > 0) {
if(this.bulkEpisodeLimit) {
x.episodeRequestLimit = this.bulkEpisodeLimit;
}
if(this.bulkMovieLimit && this.bulkMovieLimit > 0) {
if(this.bulkMovieLimit) {
x.movieRequestLimit = this.bulkMovieLimit;
}
this.identityService.updateUser(x).subscribe(y => {