diff --git a/lib/guardian/category_guardian.rb b/lib/guardian/category_guardian.rb index 4a419ce1e9a..dbe5f868194 100644 --- a/lib/guardian/category_guardian.rb +++ b/lib/guardian/category_guardian.rb @@ -45,6 +45,7 @@ module CategoryGuardian end def can_see_category?(category) + return false unless category return true if is_admin? return true if !category.read_restricted return true if is_staged? && category.email_in.present? && category.email_in_allow_strangers