diff options
| -rw-r--r-- | app/controllers/concerns/feature_checker.rb | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/app/controllers/concerns/feature_checker.rb b/app/controllers/concerns/feature_checker.rb index 9ca5ed0a7..5e102ef1b 100644 --- a/app/controllers/concerns/feature_checker.rb +++ b/app/controllers/concerns/feature_checker.rb @@ -27,6 +27,8 @@ module FeatureChecker    protected    def has_feature?(*features) +    return false unless current_organisation +      features.all? do |feature|        current_organisation.has_feature? feature      end | 
