So, I am starting a new Aurelia project running on AspNET Core 2.1 (Coming from DurandalJS)
simple question. if I cannot use controllers to serve my views (which seems to be almost impossible to do with webpack, Aurelia, ect), and my views are static HTML, how do I hide a simple button on a form if a user is not an admin? (yes, I do know the Aurelia 'if' syntax). How does my client 'know' the users roles? Do we make a webapi call and get them? is that secure? now anyone 'watching' is aware of certain roles?
Should be simple right? Obviously in my past project we rendered the view in cshtml and just did not "write" out the html based on role membership.
this does not need to be complicated, or rocket science. Just looking for a simple point in the right direction.