Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9584: LJSUP-7046 (The user can remove the twit...

Committer: ailyin
LJSUP-7046 (The user can remove the twitter connect)
U   trunk/htdocs/manage/settings/twitter.bml
Modified: trunk/htdocs/manage/settings/twitter.bml
===================================================================
--- trunk/htdocs/manage/settings/twitter.bml	2010-10-04 05:14:30 UTC (rev 9583)
+++ trunk/htdocs/manage/settings/twitter.bml	2010-10-04 06:55:53 UTC (rev 9584)
@@ -31,6 +31,13 @@
         return 'Bogus form data; please go back and try again.';
     }
 
+    if (    $remote->is_identity
+         && $remote->identity->short_code eq 'twitter' )
+    {
+        return 'You cannot change your settings here, because your ' .
+               'account is a Twitter identity.';
+    }
+
     if ($act eq 'connect') {
         my $public   = LJ::Request->get_param('oauth_token');
         my $verifier = LJ::Request->get_param('oauth_verifier');

Tags: andy, bml, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments