Fix category missing when user don't have permission to edit.
Merge pull request #527 from allenzhao/category-fix

Fix category missing when user don't have permission to edit. Fixes #525