What’s the best practice for showing links/button based on permissions?
I have 2 choices:
- Filter the items at BE, and pass back the json to FE to render. FE has no knowledge about the permission. However, sometime the menu items/button contains links to another FE url, that means BE needs to have knowledge of FE.
What is the general practice for this?