# HG changeset patch # User osimons # Date 1248614860 0 # Node ID 4848d9b7a3e5a5202f084ef95de87daa475c3cda # Parent 87f87c756dca4d9176c4d70b74179638c76c23a3 0.6dev: Removing 'Invalidate build' button when the build is 'pending' (and nothing further to really invalidate). See #332. diff --git a/bitten/web_ui.py b/bitten/web_ui.py --- a/bitten/web_ui.py +++ b/bitten/web_ui.py @@ -526,7 +526,8 @@ step) }) data['build']['steps'] = steps - data['build']['can_delete'] = ('BUILD_DELETE' in req.perm) + data['build']['can_delete'] = ('BUILD_DELETE' in req.perm \ + and build.status != build.PENDING) repos = self.env.get_repository(req.authname) repos.authz.assert_permission(config.path)