[dw-free] Paid communities should not have a network link
[commit: http://hg.dwscoalition.org/dw-free/rev/c598b44b4a47]
http://bugs.dwscoalition.org/show_bug.cgi?id=2097
Don't show the /network link, since it is not applicable (page will be
empty).
Patch by
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2097
Don't show the /network link, since it is not applicable (page will be
empty).
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/User.pm
-------------------------------------------------------------------------------- diff -r d9473c4606c7 -r c598b44b4a47 cgi-bin/LJ/User.pm --- a/cgi-bin/LJ/User.pm Sun Nov 15 09:06:22 2009 +0000 +++ b/cgi-bin/LJ/User.pm Sun Nov 15 09:12:36 2009 +0000 @@ -1957,7 +1957,7 @@ sub can_use_mass_privacy { } sub can_use_network_page { - return $_[0]->get_cap( 'friendsfriendsview' ) ? 1 : 0; + return 0 unless $_[0]->get_cap( 'friendsfriendsview' ) && $_[0]->is_person; } --------------------------------------------------------------------------------