Skip to content

Commit

Permalink
Fixed forwarding login
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 22, 2010
1 parent 2f52b87 commit 37b0c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/cms_controller.rb
Expand Up @@ -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
Expand Down

0 comments on commit 37b0c78

Please sign in to comment.