I’m building a User Account section where Users can edit certain things about their profile. All Users will be associated with a Company, and some of them will be Admin Users that can manage additional things about the company that the regular users cannot.
I’m managing this my hiding certain buttons which show popups or other sections where company info can be edited. Is this enough, or will someone good enough with javascript be able to bypass the buttons and hide/show logic to just show these elements anyway? I imagine they’d be able to do that if the elements are all loaded and simply not shown.
More generally, in this scenario, what is the best way to make sure users don’t try to hack around and get to edit or even see info that’s not meant for them?
Thanks!