mirror of
https://github.com/e107inc/e107.git
synced 2025-08-15 02:57:15 +02:00
Fix for user-extended permissions on user page. Corrected wrapper ID for user/member list.
This commit is contained in:
@@ -35,6 +35,7 @@ class pm_admin extends e_admin_dispatcher
|
||||
'ui' => 'private_msg_form_ui',
|
||||
'uipath' => null
|
||||
),
|
||||
|
||||
/*
|
||||
'block' => array(
|
||||
'controller' => 'private_msg_block_ui',
|
||||
@@ -52,6 +53,7 @@ class pm_admin extends e_admin_dispatcher
|
||||
'main/limits' => array('caption'=> ADLAN_PM_55, 'perm' => 'P'),
|
||||
'main/maint' => array('caption'=> ADLAN_PM_59, 'perm' => 'P'),
|
||||
|
||||
|
||||
'main/null' => array('divider'=> true),
|
||||
'inbox/list' => array('caption'=> "Inbox", 'perm' => 'P'),
|
||||
'outbox/list' => array('caption'=> "Outbox", 'perm' => 'P'),
|
||||
@@ -71,6 +73,17 @@ class pm_admin extends e_admin_dispatcher
|
||||
);
|
||||
|
||||
protected $menuTitle = LAN_PLUGIN_PM_NAME;
|
||||
|
||||
function init()
|
||||
{
|
||||
|
||||
if(e_DEBUG == true)
|
||||
{
|
||||
$this->adminMenu['main/null2'] = array('divider'=> true);
|
||||
$this->adminMenu['main/list'] = array('caption'=> "Log", 'perm' => 'P');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -831,6 +844,15 @@ class private_msg_ui extends e_admin_ui
|
||||
$this->fields['options']['readParms'] = 'editClass='.e_UC_NOBODY;
|
||||
}
|
||||
|
||||
if($this->getMode() == 'main')
|
||||
{
|
||||
$this->listQry = 'SELECT p.*, u.user_name, f.user_name AS fromuser FROM #private_msg AS p LEFT JOIN #user AS u ON u.user_id = p.pm_to
|
||||
LEFT JOIN #user as f on f.user_id = p.pm_from WHERE 1 ';
|
||||
// $this->fields['pm_from']['nolist'] = true;
|
||||
$this->fields['options']['readParms'] = 'editClass='.e_UC_NOBODY;
|
||||
$this->perPage = 20;
|
||||
}
|
||||
|
||||
if($this->getAction() == 'create')
|
||||
{
|
||||
$this->fields['pm_to']['writeParms']['default'] = 99999999;
|
||||
|
Reference in New Issue
Block a user