diff options
Diffstat (limited to 'js/lib/session.js')
-rw-r--r-- | js/lib/session.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/session.js b/js/lib/session.js index 48821a260..a1454aa50 100644 --- a/js/lib/session.js +++ b/js/lib/session.js @@ -98,14 +98,14 @@ elgg.get_logged_in_user_guid = function() { /** * @return {boolean} Whether there is a user logged in */ -elgg.elgg_is_logged_in = function() { +elgg.is_logged_in = function() { return (elgg.get_logged_in_user_entity() instanceof elgg.ElggUser); }; /** * @return {boolean} Whether there is an admin logged in */ -elgg.elgg_is_admin_logged_in = function() { +elgg.is_admin_logged_in = function() { var user = elgg.get_logged_in_user_entity(); return (user instanceof elgg.ElggUser) && user.isAdmin(); }; |