1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

Fix for user-extended permissions on user page. Corrected wrapper ID for user/member list.

This commit is contained in:
Cameron
2016-04-24 16:13:05 -07:00
parent 4125d04371
commit 89264b0259
6 changed files with 70 additions and 14 deletions

View File

@@ -672,16 +672,30 @@ class user_shortcodes extends e_shortcode
if(!empty($parm['field']))
{
$ext = e107::getUserExt();
$fld = 'user_'.$parm['field'];
if(!$ext->hasPermission($fld,'read'))
{
return false;
}
$val = $this->var[$fld];
return e107::getUserExt()->renderValue($val); //TODO auto-detect type, from within the user-extended class.
// e107::getDebug()->log(print_a($ext,true));
return $ext->renderValue($val); //TODO auto-detect type, from within the user-extended class.
}
return ' ';
return false;
}
function sc_user_extended_all($parm)
{
$sql = e107::getDb();