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);
--------------------------------------------------------------------------------

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