[dw-free] community archive display not updating when alternate posting method used
[commit: http://hg.dwscoalition.org/dw-free/rev/6f5b183b5756]
http://bugs.dwscoalition.org/show_bug.cgi?id=2522
Use the $security variable which contains processed values, instead of the
raw value from the request.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2522
Use the $security variable which contains processed values, instead of the
raw value from the request.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/ljprotocol.pl
-------------------------------------------------------------------------------- diff -r 0a9810fcc06f -r 6f5b183b5756 cgi-bin/ljprotocol.pl --- a/cgi-bin/ljprotocol.pl Tue Jun 15 15:04:07 2010 +0800 +++ b/cgi-bin/ljprotocol.pl Tue Jun 15 16:35:02 2010 +0800 @@ -1425,7 +1425,7 @@ sub postevent return $fail->($err,501,$dberr) if $dberr; LJ::MemCache::incr([$ownerid, "log2ct:$ownerid"]); - $uowner->clear_daycounts( $qallowmask || $req->{security} ); + $uowner->clear_daycounts( $qallowmask || $security ); # set userprops. { @@ -2010,7 +2010,7 @@ sub editevent } return fail($err,501,$dbcm->errstr) if $dbcm->err; - $uowner->clear_daycounts( $oldevent->{allowmask} + 0 || $oldevent->{security}, $req->{allowmask} + 0 || $req->{security} ); + $uowner->clear_daycounts( $oldevent->{allowmask} + 0 || $oldevent->{security}, $qallowmask || $security ); $res->{itemid} = $itemid; if (defined $oldevent->{'anum'}) { --------------------------------------------------------------------------------