TryGhost/Ghost — pull request #2753 by jgable (2014-05-14 01:56:00+00:00)
Title: Add apps permissable checks in posts and users

Closes #2738

- Re-introduce the TargetModel.permissable interface check in theregular permission flow path
- Pass loadedPermissions, hasUserPermission and hasAppPermission to permissable interface to reduce logic needed
- Refactor recursive call to pass original arguments but with actual model
- Refactor canThis(this.user) use in api/posts.js to just canThis(this)