discourse/discourse — pull request #508 by ZogStriP (2013-03-21 00:28:26+00:00)
Title: fix the issue regarding the unban button

Meta: [Unban button for user that has never been banned?](http://meta.discourse.org/t/unban-button-for-user-that-has-never-been-banned/4941)

![Screenshot_21_03_13_00_58](https://f.cloud.github.com/assets/362783/283742/dde19f52-91ba-11e2-84ce-fcefcf9a3f58.png)

- [x] added `isBanned` property to deal with `null` response
- [x] cleaned up a bit JS code
- [x] changed the *unban* logic: when a user is banned, we can **always** unban him.