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

        Patch by tyggerdev. 

diffs (12 lines):

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 />";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to