diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-05-10 23:26:13 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-05-10 23:26:13 +0200 |
commit | d575e1bcb35dc228f3851fbf1f9d4a1de0bdecc4 (patch) | |
tree | 3485b0aabda72fb468697fd6f6106e621eeb529b /application/helpers/filebin_helper.php | |
parent | 42695b54153bcee27d2d66bd9d50bcced30d3ec1 (diff) |
Hide function not supported by auth driver
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers/filebin_helper.php')
-rw-r--r-- | application/helpers/filebin_helper.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index 0951527fe..0063b6526 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -284,4 +284,19 @@ function getNormalizedFILES() return $ret; } +// Allow simple checking inside views +function auth_driver_function_implemented($function) +{ + static $result = array(); + if (isset($result[$function])) { + return $result[$function]; + } + + $CI =& get_instance(); + $CI->load->driver("duser"); + $result[$function] = $CI->duser->is_implemented($function);; + + return $result[$function]; +} + # vim: set noet: |