Committer: ailyin
LJSUP-6667 (We should disable flag "remove all my post in the community" for identity accounts)- as well, do not show either of these two for communities
U trunk/htdocs/accountstatus.bml
Modified: trunk/htdocs/accountstatus.bml =================================================================== --- trunk/htdocs/accountstatus.bml 2010-09-01 10:03:07 UTC (rev 17248) +++ trunk/htdocs/accountstatus.bml 2010-09-01 10:08:57 UTC (rev 17249) @@ -141,14 +141,16 @@ $ret .= LJ::run_hook("accountstatus_delete_text", $u); - unless ($u->is_suspended) { - my ($purge_comments, $purge_community_entries) = split /:/, $u->prop("purge_external_content"); - + my ($purge_comments, $purge_community_entries) = split /:/, $u->prop("purge_external_content"); + + if (($u->is_person || $u->is_identity) && !$u->is_suspended) { $ret .= '<h3>' . $ML{'.label.purge_external_content'} . '</h3>'; $ret .= "<ul style='list-style:none;margin:0;padding:0;'><li><label for='purge_comments'>"; $ret .= LJ::html_check({ 'name' => 'purge_comments', 'id' => 'purge_comments', 'selected' => $purge_comments }); $ret .= "$ML{'.label.purge_comments'}</label></li>"; + } + if ($u->is_person && !$u->is_suspended) { $ret .= "<li><label for='purge_community_entries'>"; $ret .= LJ::html_check({ 'name' => 'purge_community_entries', 'id' => 'purge_community_entries', 'selected' => $purge_community_entries }); $ret .= "$ML{'.label.purge_community_entries'}</label></li></ul>";