Downgrading was never allowed. However the jailbreak community found a way to downgrade older devices (iPhone 4 and older) by fake signing the software file (IPSW) through a signature called SHSH blobs.
Apple patched this in the newer firmwares and devices.