We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8686ae commit 6b0ef26Copy full SHA for 6b0ef26
app/models/polymorphic/task.rb
@@ -188,6 +188,7 @@ def self.find_all_grouped(user, view)
188
#----------------------------------------------------------------------------
189
def self.bucket_empty?(bucket, user, view = "pending")
190
return false if bucket.blank? || !ALLOWED_VIEWS.include?(view)
191
+ return false unless Setting.task_bucket.map(&:to_s).include?(bucket.to_s)
192
193
if view == "assigned"
194
assigned_by(user).send(bucket).pending.count
0 commit comments