mirror of
https://github.com/e107inc/e107.git
synced 2025-02-12 02:24:11 +01:00
Fixes #1799 - Check UE field for read permission
This commit is contained in:
parent
3f2a551147
commit
23b85145ab
@ -747,8 +747,9 @@ function sc_user_email($parm='')
|
|||||||
{
|
{
|
||||||
|
|
||||||
$key = $f['user_extended_struct_name'];
|
$key = $f['user_extended_struct_name'];
|
||||||
|
$field = 'user_'.$key;
|
||||||
|
|
||||||
if($ue_name = $tp->parseTemplate("{USER_EXTENDED={$key}.text.{$this->var['user_id']}}", TRUE))
|
if($ue->hasPermission($field) && $ue_name = $tp->parseTemplate("{USER_EXTENDED={$key}.text.{$this->var['user_id']}}", TRUE))
|
||||||
{
|
{
|
||||||
|
|
||||||
$extended_record = str_replace("EXTENDED_ICON","USER_EXTENDED={$key}.icon", $EXTENDED_CATEGORY_TABLE);
|
$extended_record = str_replace("EXTENDED_ICON","USER_EXTENDED={$key}.icon", $EXTENDED_CATEGORY_TABLE);
|
||||||
@ -991,4 +992,3 @@ function sc_user_email($parm='')
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user