##// END OF EJS Templates
path-permissions: handle case of missing requirements and initializing self.path_filter with None value....
marcink -
r2624:c116493f default
parent child Browse files
Show More
@@ -204,6 +204,7 b' class RepoAppView(BaseAppView):'
204 c.rhodecode_db_repo = self.db_repo
204 c.rhodecode_db_repo = self.db_repo
205 c.repo_name = self.db_repo_name
205 c.repo_name = self.db_repo_name
206 c.repository_pull_requests = self.db_repo_pull_requests
206 c.repository_pull_requests = self.db_repo_pull_requests
207 self.path_filter = PathFilter(None)
207
208
208 c.repository_requirements_missing = False
209 c.repository_requirements_missing = False
209 try:
210 try:
@@ -212,13 +213,10 b' class RepoAppView(BaseAppView):'
212 path_perms = self.rhodecode_vcs_repo.get_path_permissions(
213 path_perms = self.rhodecode_vcs_repo.get_path_permissions(
213 c.auth_user.username)
214 c.auth_user.username)
214 self.path_filter = PathFilter(path_perms)
215 self.path_filter = PathFilter(path_perms)
215 else:
216 self.path_filter = PathFilter(None)
217 except RepositoryRequirementError as e:
216 except RepositoryRequirementError as e:
218 c.repository_requirements_missing = True
217 c.repository_requirements_missing = True
219 self._handle_missing_requirements(e)
218 self._handle_missing_requirements(e)
220 self.rhodecode_vcs_repo = None
219 self.rhodecode_vcs_repo = None
221 self.path_filter = None
222
220
223 c.path_filter = self.path_filter # used by atom_feed_entry.mako
221 c.path_filter = self.path_filter # used by atom_feed_entry.mako
224
222
General Comments 0
You need to be logged in to leave comments. Login now