Mercurial > bitten > bitten-test
changeset 561:8ffe90404a8c
hide build configurations that user does not have rights to access in repository (silk) - fixes #384
author | dfraser |
---|---|
date | Mon, 11 May 2009 11:48:56 +0000 |
parents | 8d08cfaedbfc |
children | a8c84285e67a |
files | bitten/web_ui.py |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/web_ui.py +++ b/bitten/web_ui.py @@ -180,6 +180,14 @@ configs = [] for config in BuildConfig.select(self.env, include_inactive=show_all): + + repos = self.env.get_repository(req.authname) + if hasattr(repos, 'sync'): + repos.sync() + + if not repos.authz.has_permission(config.path): + continue + description = config.description if description: description = wiki_to_html(description, self.env, req) @@ -207,10 +215,6 @@ if not config.active: continue - repos = self.env.get_repository(req.authname) - if hasattr(repos, 'sync'): - repos.sync() - prev_rev = None for platform, rev, build in collect_changes(repos, config): if rev != prev_rev: