I am used to using cancan in my rails views to show/hide visual elements depending on the users permissions. eg showing a 'Add New Post' link to users that are allowed to add new posts.
In a backbone app, where I am sending the entire app to the client at the beginning, how can I ensure that these elements are shown. Obviously I can hide them based on a attribute on a user model. But it would be possible to override this attribute on the client side.
Just wondering what others are doing to secure their apps from people messing with the js on the client. Or am I being too secure (being that there wouldn't be any data sent to the client as the authorisation is still working right on the server).