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 ]
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
How to get User ID on angular?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
In the angular component html, you can directly check for permission using
Permissionpipe<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, ) { }Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
This issue is closed because it has not had recent activity for a long time.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)