As an Angular newbie, I've encountered a scenario where there is an object in the scope that determines the role of the current user (e.g. user.role=REGULAR
).
I'm wondering if there's a way to prevent users from using firebug to change user.role=ADMIN
?
For instance, I've come across code that displays a tab based on a value in the scope, but unsure how to prevent users from altering that value (and gaining access to the tab). Is there a specific approach to address this issue? Should all access-related functionalities be exclusively fetched from a web service or a protected remote location?