Only a user who is approved for a product role is displayed as a sprint candidate.
Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/models/product.rb | 2 +-
doc/ChangeLog | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/app/models/product.rb b/app/models/product.rb
index cc238fa..8234e00 100644
--- a/app/models/product.rb
+++ b/app/models/product.rb
@@ -36,7 +36,7 @@ class Product < ActiveRecord::Base
belongs_to :project
belongs_to :owner, :class_name => 'User', :foreign_key =>
'owner_id'
- has_many :product_roles, :dependent => :destroy
+ has_many :product_roles, :dependent => :destroy, :conditions => {:pending =>
false, :is_approved => true}
has_many :members, :through => :product_roles, :source => :user
has_many :user_stories, :dependent => :destroy
has_many :sprints, :dependent => :destroy
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 070818c..736d3d2 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -59,6 +59,7 @@ Change Log (0.3.0):
* #229 - Fixed when nil.name showed up when viewing sprints. (BUG)
* #230 - Sprint not started but no error message is shown. (BUG)
* #231 - Fix the breadcrumb trail for the task page. (BUG)
+ * #232 - Only show approved product members as sprint team candidates. (BUG)
* #234 - Fix the URL for user registration. (BUG)
* #235 - Recent activity is actually oldest activity. (BUG)
--
1.6.2
Show replies by thread