|
|
@ -79,6 +79,7 @@ export class MovieSearchComponent implements OnInit {
|
|
|
|
public request(searchResult: ISearchMovieResult) {
|
|
|
|
public request(searchResult: ISearchMovieResult) {
|
|
|
|
searchResult.requested = true;
|
|
|
|
searchResult.requested = true;
|
|
|
|
searchResult.requestProcessing = true;
|
|
|
|
searchResult.requestProcessing = true;
|
|
|
|
|
|
|
|
searchResult.showSubscribe = false;
|
|
|
|
if (this.authService.hasRole("admin") || this.authService.hasRole("AutoApproveMovie")) {
|
|
|
|
if (this.authService.hasRole("admin") || this.authService.hasRole("AutoApproveMovie")) {
|
|
|
|
searchResult.approved = true;
|
|
|
|
searchResult.approved = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -103,6 +104,7 @@ export class MovieSearchComponent implements OnInit {
|
|
|
|
searchResult.approved = false;
|
|
|
|
searchResult.approved = false;
|
|
|
|
searchResult.processed = false;
|
|
|
|
searchResult.processed = false;
|
|
|
|
searchResult.requestProcessing = false;
|
|
|
|
searchResult.requestProcessing = false;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|