Hide button on view based on Auth access in Aspnet MVC - Without hard coding Authorization in Controller
问题 Project Overview: Working in dashboard Views on back-end of project. I have a Permission driven Menu. Menu gets populated when User logs in and views dashboard. Currently the User sees all the buttons IE: delete, edit, details, create. I would like to hide those buttons from the view. Currently they can select it and it will redirect to a UnAuthorized page if they do not have access. I have a Menu / MenuPermissions tables that bits are set if the user has access or not. I am looking for