get the logic right :X
This commit is contained in:
parent
ef4ba8d3ce
commit
66f204e0f0
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class Admin::UsersController < Admin::ApplicationController
|
|||
end
|
||||
|
||||
def impersonate
|
||||
if !can?(user, :log_in)
|
||||
if can?(user, :log_in)
|
||||
session[:impersonator_id] = current_user.id
|
||||
|
||||
warden.set_user(user, scope: :user)
|
||||
|
|
Loading…
Reference in a new issue