Fix permission issue with pubs