0
xitix created
Based on users on I want to hide some admin content to them on Front End[Angular].
Kindly provide code.
My project Type : Asp.Net core + Angular [lates v . 70 ]
4 Answer(s)
-
0
Hi @xitix
You can use https://aspnetboilerplate.com/Pages/Documents/Zero/Permission-Management for this. You can grant or revoke permissions to specific users and hide/show UI parts on Angular for any permission you want.
-
0
How to get User ID on angular?
-
0
In the angular component html, you can directly check for permission using
Permission
pipe<div *ngIf="'Pages.Editions.Create' | permission"></>
otherwise, you can inject permission checker service and call
isGranted(myPermissionName)
import { PermissionCheckerService } from '@abp/auth/permission-checker.service'; constructor( private _permissionCheckerService: PermissionCheckerService, ) { }
-
0
This issue is closed because it has not had recent activity for a long time.