Permalink
Browse files

translator? and superuser? should really fail when there's no user.

  • Loading branch information...
1 parent 7eb23d6 commit 1ec41f53d0418526ec189d247e132b35b0380656 @parndt parndt committed Aug 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pages/app/controllers/refinery/admin/pages_controller.rb
@@ -80,11 +80,11 @@ def restrict_access
end
def translator?
- current_refinery_user && current_refinery_user.has_role?(:translator)
+ current_refinery_user.has_role?(:translator)
end
def superuser?
- current_refinery_user && current_refinery_user.has_role?(:superuser)
+ current_refinery_user.has_role?(:superuser)
end
def default_or_no_locale?

0 comments on commit 1ec41f5

Please sign in to comment.