-
Hello We are investigating to use OrchardCore for an intranet. The idea is that all users have to authenticate to view the webpage. The question is, if permissions can be set, that some pages from the intranet are only visible to a specific user-group. I did not see anything specific but asking myself if there is a liquid-tag to verify the users permissions and redirect in case he has no access. Also for the menu this would be used to display the entry or not based on the users permissions Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
-
You can inject However IMHO redirecting from views will be too late. To redirect based on permission - either use controller or IActionFilter |
Beta Was this translation helpful? Give feedback.
-
@hishamco and @ns8482e - thanks a lot for your shared input. I will make a PoC in the next weeks and come back with the results! |
Beta Was this translation helpful? Give feedback.
You can use
IAuthorizationService.AuthorizeAsync()
to check a certain permission in the code or UI