mo-esmp / DynamicRoleBasedAuthorizationNETCore

Dynamic Role-Based Access Control for ASP.NET Core MVC and Web API
GNU General Public License v3.0
451 stars 94 forks source link

Role Based Menu #15

Closed papyr closed 4 years ago

papyr commented 4 years ago

Hello, can we generate a Role Based Menu option when we configure services.

Also I think we can use this in our template for breacrumbs This template is much more easier to use than the dotnet boxed or rehans template.

Do you have any suggestions to customizing T4 tempaltes to do scaffolding from table controller and views

thanks

mo-esmp commented 4 years ago

Right now it could be done via secure-content tag helper to generate role-based menu:

<secure-content asp-area="" asp-controller="Role" asp-action="Index">
    <li><a asp-area="" asp-controller="Role" asp-action="Index">Role</a></li>
</secure-content>

As you said it's a good idea to implement functionality like breacrumbs for generating a role-based menu. I'm not good at using T4 templates and honestly have no idea about how to do scaffolding from table controller and views.