Implement resource-based authorization with Angular