Allow spoofing admin in development environment
This commit is contained in:
parent
1d4f7af63d
commit
888dcc1a99
1 changed files with 2 additions and 0 deletions
2
vedia.rb
2
vedia.rb
|
|
@ -454,6 +454,8 @@ helpers do
|
|||
def current_user
|
||||
if session[:user_id]
|
||||
User.find(session[:user_id])
|
||||
elsif settings.spoof_admin
|
||||
User.find(1)
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue