Added restrictions to showing file diffs