mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
DEV: Fix failing spec.
This commit is contained in:
@ -27,7 +27,7 @@ class UserBadge < ActiveRecord::Base
|
||||
private
|
||||
|
||||
def single_grant_badge?
|
||||
self.badge.single_grant?
|
||||
self.badge ? self.badge.single_grant? : true
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user