Ember SimpleAuth authenticate access to protected resources
问题 I have an app where users can edit organisations in various 'pages'. App.Router.map(function() { this.resource('organisation', {path: '/:orgname'}, function () { this.route('foo'); this.route('bar'); }); }); I want users to be able to view any organisation but the various pages should become editable if the user has admin rights over the organisation. Organisations are editable based on some tricky logic handled by the server. The user model has an organisations attribute to reflect these