make reference to repo conditional

This commit is contained in:
Paul Gauthier 2023-08-18 07:11:42 -07:00
parent 8f26c27921
commit f45bcbf8eb

View file

@ -726,6 +726,7 @@ class Coder:
def allowed_to_edit(self, path): def allowed_to_edit(self, path):
full_path = self.abs_root_path(path) full_path = self.abs_root_path(path)
if self.repo:
is_in_repo = self.repo.path_in_repo(path) is_in_repo = self.repo.path_in_repo(path)
if full_path in self.abs_fnames: if full_path in self.abs_fnames: