Hi @Cenk ,
Using <AuthorizeView> is also similar right?
Yes, you are right. The AuthorizeView component supports role-based or policy-based authorization.
For role-based authorization, use the Roles parameter:
<AuthorizeView Roles="admin, superuser">
<p>You can only see this if you're an admin or superuser.</p>
</AuthorizeView>
More information, see Role-based and policy-based authorization.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion