refactor allow category delete permission