How to check if current user is author of specific post in Angular

后端 未结 0 1493
夕颜
夕颜 2020-12-15 04:08

I need to prevent user to be able edit someone\'s post.

For that i created user.guard.ts and use in routing as canActivate[guard]

@Injectable({
  provi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题