[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
tyggerdev.
Files modified:
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
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&itemid=$ditemid'" } ); $ret .= " p?><br />"; --------------------------------------------------------------------------------