move rights changing to initialization of the repo