#2479 removing permissions after paste htmlpage (if inheriting)