kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-08-18 08:38 pm

[dw-free] editing tags broken in communities

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

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

Check for 'friends' permission value for backward compatibility.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/taglib.pl
--------------------------------------------------------------------------------
diff -r acf4be7acc4a -r a4aafb942b4d cgi-bin/taglib.pl
--- a/cgi-bin/taglib.pl	Tue Aug 18 16:27:18 2009 +0000
+++ b/cgi-bin/taglib.pl	Tue Aug 18 15:37:54 2009 -0500
@@ -507,7 +507,7 @@ sub _remote_satisfies_permission {
         return 1;
     } elsif ($perm eq 'none') {
         return 0;
-    } elsif ($perm eq 'protected') {
+    } elsif ( $perm eq 'protected' || $perm eq 'friends' ) { # 'friends' for backwards compatibility
         return $u->trusts_or_has_member( $remote );
     } elsif ($perm eq 'private') {
         return LJ::can_manage($remote, $u);
--------------------------------------------------------------------------------
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2009-08-18 09:01 pm (UTC)(link)
I love how quickly bugs get fixed around here.