WordPress: Editor cannot upload images issue [RESOLVED]

I found that for some reason user with Editor role cannot load images.
No specific error appears, except “HTTP error

The solution appeared to be very simple. Add the following line to functions.php

The solution is found here HTTP error when an editor tries to load image