lib/site_controller_extensions.rb in radiant-reader-extension-3.0.18 vs lib/site_controller_extensions.rb in radiant-reader-extension-3.0.19
- old
+ new
@@ -1,8 +1,12 @@
module SiteControllerExtensions
def self.included(base)
base.class_eval {
+ rescue_from ReaderError::AccessDenied, :with => :access_denied
+ rescue_from ReaderError::LoginRequired, :with => :login_required
+ rescue_from ReaderError::ActivationRequired, :with => :activation_required
+
# NB. to control access without disabling the cache we have overridden Page.cache?
# to return false for any page that has a group association.
def find_page_with_group_check(path)
page = find_page_without_group_check(path)