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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user