fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-11-03 06:41 am

[dw-free] "Edit entry" link showing for users who do not have the privs to actually edit t

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

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

Don't show the crosspost message / link to edit entry to just anyone who is
allowed to edit tags in this journal.

Patch by [personal profile] tyggerdev.

Files modified:
  • htdocs/edittags.bml
--------------------------------------------------------------------------------
diff -r 5a9c11b6d9d9 -r 0c5c79c2b6bf htdocs/edittags.bml
--- a/htdocs/edittags.bml	Wed Nov 03 14:27:12 2010 +0800
+++ b/htdocs/edittags.bml	Wed Nov 03 14:41:04 2010 +0800
@@ -93,7 +93,7 @@ body<=
     my $logtagstr = join ', ', map { LJ::ejs($_) } sort values %$logtags;
 
     $ret .= "<?p $ML{'.intro'} p?>";
-    if ( $ent->prop( 'xpost' ) ) {
+    if ( $ent->prop( 'xpost' ) && $remote->can_post_to( $u ) ) {
         $ret .= "<?p " . BML::ml( 'xpost.notrespected', { aopts => "href='$LJ::SITEROOT/manage/settings/?cat=othersites'" } );
         $ret .= " " . BML::ml( '.xpost.notrespected.editentry', { aopts => "href='$LJ::SITEROOT/editjournal?journal=$journal&amp;itemid=$ditemid'" } );
         $ret .= " p?><br />";
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

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