kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-06-10 01:06 pm

[dw-free] Can't edit tags on community entries made by deleted users

[commit: http://hg.dwscoalition.org/dw-free/rev/3bf819c640a2]

http://bugs.dwscoalition.org/show_bug.cgi?id=2637

Remove tests that were preventing tags from being edited on community
entries posted by a user whose account was deleted.

Patch by [personal profile] the_wanlorn.

Files modified:
  • htdocs/edittags.bml
--------------------------------------------------------------------------------
diff -r 59641e57d208 -r 3bf819c640a2 htdocs/edittags.bml
--- a/htdocs/edittags.bml	Thu Jun 10 07:45:01 2010 -0500
+++ b/htdocs/edittags.bml	Thu Jun 10 08:06:16 2010 -0500
@@ -52,16 +52,6 @@ body<=
         or die "Unable to create entry object.\n";
     return $err->( $ML{'.invalid.notauthorized'} )
         unless $ent->visible_to( $remote );
-
-    # poster must be visible too
-    if ($logrow->{posterid} != $u->{userid}) {
-        my $pu = LJ::load_userid($logrow->{posterid});
-
-        unless ($remote->can_manage($u) && !$pu->is_suspended) {
-            return $err->($ML{'.readonly.poster'}) if $pu->is_readonly;
-            return $err->($ML{'.invalid.journal'}) unless $pu->is_visible;
-        }
-    }
 
     if (LJ::did_post()) {
         return $err->($ML{'.invalid.link'})
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org