Fixes stock management authorization. Fixes #38