- user web: no limit on PMs for moderators, admins etc.

svn path=/trunk/boinc/; revision=21328
This commit is contained in:
David Anderson 2010-04-29 15:28:27 +00:00
parent b6ec320db9
commit 7933287457
3 changed files with 14 additions and 2 deletions

View File

@ -3259,3 +3259,12 @@ David 29 Apr 2010
work_fetch.cpp
clientgui/
ProxyInfoPage.cpp
David 29 Apr 2010
- user web: no limit on PMs for moderators, admins etc.
html/
inc/
forum.inc
user/
pm.php

View File

@ -1081,7 +1081,8 @@ function check_reply_access($user, $forum, $thread) {
function is_moderator($user, $forum) {
if (!$user) return false;
switch ($forum->parent_type) {
$type = $forum?$forum->parent_type:0;
switch ($type) {
case 0:
if ($user->prefs->privilege(S_MODERATOR)) return true;
if ($user->prefs->privilege(S_ADMIN)) return true;

View File

@ -217,7 +217,9 @@ function do_send($logged_in_user) {
}
foreach ($userlist as $user) {
check_pm_count($logged_in_user->id);
if (!is_moderator($logged_in_user, null)) {
check_pm_count($logged_in_user->id);
}
pm_send($user, $subject, $content, true);
}