mirror of
https://github.com/myvesta/vesta
synced 2025-07-10 15:23:15 -07:00
Log in as user / Logout to real user.
This commit is contained in:
parent
29772cbfdd
commit
b13c07cca2
6 changed files with 111 additions and 32 deletions
|
@ -134,6 +134,13 @@ App.Helpers.updateInitial = function()
|
|||
});
|
||||
$('#user-name').html(App.Env.initialParams.PROFILE.uid);
|
||||
$('#page').removeClass('hidden');
|
||||
|
||||
if (App.Env.initialParams.real_user) {
|
||||
var tpl = App.Templates.get('logged_as', 'general');
|
||||
tpl.set(':YOU_ARE', App.Env.initialParams.real_user);
|
||||
tpl.set(':USER', App.Env.initialParams.auth_user.uid.uid);
|
||||
$('body').prepend(tpl.finalize());
|
||||
}
|
||||
}
|
||||
|
||||
App.Helpers.beforeAjax = function(jedi_method)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue