check repo permissions