mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-25 16:28:24 -04:00
don't notify wranglers if there are none
This commit is contained in:
1 parent
1cb0096788
commit
b2d8818ae1
1 file changed
+1
-1
@@ -139,7 +139,7 @@ class CropsController < ApplicationController
|
||||
def notify_wranglers
|
||||
return if current_member.role? :crop_wrangler
|
||||
|
||||
Role.crop_wranglers.each do |w|
|
||||
Role.crop_wranglers&.each do |w|
|
||||
Notifier.new_crop_request(w, @crop).deliver_now!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user