projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manage list update (remove too old lines)
[brisk.git]
/
web
/
index_wr.php
diff --git
a/web/index_wr.php
b/web/index_wr.php
index
f47071c
..
fe7a798
100644
(file)
--- a/
web/index_wr.php
+++ b/
web/index_wr.php
@@
-470,7
+470,7
@@
function index_wr_main(&$room, $remote_addr_full, $get, $post, $cookie)
else if ($argz[0] == 'moderate') {
// TODO: add certification check
if (1 == 1) {
else if ($argz[0] == 'moderate') {
// TODO: add certification check
if (1 == 1) {
- if ($user->flags_vlt_get(USER_FLAG_MODER) == 0) {
+ if ($user->flags_vlt_get(USER_FLAG_MODER) == 0
&& $argz[1] == 'true'
) {
/* enable moderation */
$moder_enable = 'true';
$user->flags_vlt_set(USER_FLAG_MODER, USER_FLAG_MODER);
/* enable moderation */
$moder_enable = 'true';
$user->flags_vlt_set(USER_FLAG_MODER, USER_FLAG_MODER);