Repaired authorization minor bug

* on /messages resource when filtering by type