removed old method (previous way of getting if a file was restricted)