added a permission check to the theme changing logic. closes #1010
Fixed typo
Merge pull request #1776 from rojblake/theme_change_perm

Theme change perm