Fixed an error that allow non vendor users to create components