diff --git a/app/controllers/cms_controller.rb b/app/controllers/cms_controller.rb index d5fa3506..d0c3ed2f 100644 --- a/app/controllers/cms_controller.rb +++ b/app/controllers/cms_controller.rb @@ -29,7 +29,7 @@ def store_return_location # Filter method validating that the current user has an # editor user class. Skip this filters to get around the requirement. def validate_is_editor - if myself && myself.user_class + if myself.id && myself.user_class if !myself.user_class.editor? redirect_to :controller => '/manage/access', :action => 'denied' end