Made checking if inheritance is allowed more explicit
Made checking if inheritance is allowed more explicit

CURA-2108

senttech/Cura,senttech/Cura,ynotstartups/Wanhao,totalretribution/Cura,Curahelper/Cura,hmflash/Cura,Curahelper/Cura,fieldOfView/Cura,ynotstartups/Wanhao,fieldOfView/Cura,totalretribution/Cura,hmflash/Cura