[livejournal] r20395: LJSUP-10200: is_app_userhead doesn't ret...
Committer: vtroitsky
LJSUP-10200: is_app_userhead doesn't returns if application is not visible to all users (only for owner)U trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml 2011-10-20 12:04:07 UTC (rev 20394)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml 2011-10-20 12:21:08 UTC (rev 20395)
@@ -211,7 +211,7 @@
}
if ($remote && $u && $ret{is_custom_userhead} && $u->custom_usericon_appid) {
- $ret{is_app_userhead} = 1;
+
my $app = LJ::UserApps->get_application(id => $u->custom_usericon_appid);
if($app && $app->can_show_restricted) {
