From f71d39467f353ae5f67984c0809bbda5ff7968b0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 11 Aug 2013 12:55:19 +0200 Subject: Remove api keys dependency on username We don't need it and getting the user name from the user drivers is way more complicated. Signed-off-by: Florian Pritz --- application/helpers/filebin_helper.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application/helpers/filebin_helper.php') diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index 88bb290c4..4af106a14 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -323,6 +323,12 @@ function auth_driver_function_implemented($function) return $result[$function]; } +function user_logged_in() +{ + $CI =& get_instance(); + return $CI->muser->logged_in(); +} + function send_json_reply($array) { $CI =& get_instance(); -- cgit v1.2.3-24-g4f1b