Commit 66f204e0 authored by http://jneen.net/'s avatar http://jneen.net/

get the logic right :X

parent ef4ba8d3
...@@ -29,7 +29,7 @@ class Admin::UsersController < Admin::ApplicationController ...@@ -29,7 +29,7 @@ class Admin::UsersController < Admin::ApplicationController
end end
def impersonate def impersonate
if !can?(user, :log_in) if can?(user, :log_in)
session[:impersonator_id] = current_user.id session[:impersonator_id] = current_user.id
warden.set_user(user, scope: :user) warden.set_user(user, scope: :user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment