Use proper permission check for edit category button

Fixup 545c9ec084a47ed5dd3a96799728e0db3aac9eec from PR #805