[ticket/9153] Allow users without u_sendpm permission to delete existing PM's.

The u_sendpm check in ucp_pm.php is merely for the purpose of displaying the
error message within the UCP template. Otherwise it could be removed as
compose_pm() will check the appropriate permission pertaining to the attempted
action.

PHPBB3-9153
This commit is contained in:
Cesar G 2015-10-14 03:02:22 -07:00
parent 3367f0036a
commit fb3073029f

View file

@ -92,7 +92,7 @@ class ucp_pm
$user_folders = get_folder($user->data['user_id']);
if (!$auth->acl_get('u_sendpm'))
if ($action != 'delete' && !$auth->acl_get('u_sendpm'))
{
// trigger_error('NO_AUTH_SEND_MESSAGE');
$template->assign_vars(array(