allura
修訂 | 1ac34a59289dd45c3fedf097464ad1d083a7297c (tree) |
---|---|
時間 | 2012-07-10 00:22:30 |
作者 | Tim Van Steenburgh <tvansteenburgh@gmai...> |
Commiter | Tim Van Steenburgh |
[#4382] Fix to work with new scm model.
Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>
@@ -14,7 +14,7 @@ class BranchBrowser(repository.BranchBrowser): | ||
14 | 14 | @with_trailing_slash |
15 | 15 | def index(self, limit=None, page=0, count=0, **kw): |
16 | 16 | latest = c.app.repo.latest(branch=self._branch) |
17 | - if not latest or (latest.object_id.split(':')[1] == '1' and h.has_access(c.app, 'write')()): | |
17 | + if not latest or (latest._id.split(':')[1] == '1' and h.has_access(c.app, 'write')()): | |
18 | 18 | return dict(allow_fork=False, log=[]) |
19 | 19 | redirect(latest.url() + 'tree/') |
20 | 20 |