Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public grants = (): Observable<Grants> => {
- return this._http.get(this.actionUrl + '/grants', { withCredentials: true })
- .map((response: Response) => response.json() as Grants)
- .catch(this.handleError);
- }
- constructor(protected authService: AuthService) {
- this.authService.grants().subscribe(grants => {
- this.userAccess = grants;
- this.showComponents(grants); // Show the components that user has access to based the grants answer
- });
- }
Add Comment
Please, Sign In to add comment