mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Bugtracker #4670 - block class send if 'send to multiple users' not allowed
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm.php,v $
|
||||||
| $Revision: 1.8 $
|
| $Revision: 1.9 $
|
||||||
| $Date: 2008-11-08 17:11:44 $
|
| $Date: 2009-02-02 17:42:59 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -329,7 +329,7 @@ function post_pm()
|
|||||||
{
|
{
|
||||||
return LAN_PM_15;
|
return LAN_PM_15;
|
||||||
}
|
}
|
||||||
elseif(!check_class($_POST['pm_userclass']) && !ADMIN)
|
elseif((!check_class($_POST['pm_userclass']) || !check_class($pm_prefs['multi_class'])) && !ADMIN)
|
||||||
{
|
{
|
||||||
return LAN_PM_16;
|
return LAN_PM_16;
|
||||||
}
|
}
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm_shortcodes.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm_shortcodes.php,v $
|
||||||
| $Revision: 1.8 $
|
| $Revision: 1.9 $
|
||||||
| $Date: 2008-11-25 17:38:56 $
|
| $Date: 2009-02-02 17:43:00 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
@@ -48,7 +48,7 @@ if($pm_info['from_name'])
|
|||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
if($pm_prefs['allow_userclass'])
|
if($pm_prefs['allow_userclass'] && check_class($pm_prefs['multi_class']))
|
||||||
{
|
{
|
||||||
$ret = "<input type='checkbox' name='to_userclass' value='1' />".LAN_PM_4." ";
|
$ret = "<input type='checkbox' name='to_userclass' value='1' />".LAN_PM_4." ";
|
||||||
require_once(e_HANDLER."userclass_class.php");
|
require_once(e_HANDLER."userclass_class.php");
|
||||||
|
Reference in New Issue
Block a user