mirror of https://github.com/BOINC/boinc.git
- user web: no limit on PMs for moderators, admins etc.
svn path=/trunk/boinc/; revision=21328
This commit is contained in:
parent
b6ec320db9
commit
7933287457
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue