журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22185: LJSUP-12247: Implement requested scopes/...

Committer: nnikulochkina
LJSUP-12247: Implement requested scopes/permissions mapping for XML-RPC functions
U   trunk/etc/lj-api-conf.pl
Modified: trunk/etc/lj-api-conf.pl
===================================================================
--- trunk/etc/lj-api-conf.pl	2012-06-07 06:40:22 UTC (rev 22184)
+++ trunk/etc/lj-api-conf.pl	2012-06-07 07:00:43 UTC (rev 22185)
@@ -23,6 +23,49 @@
         sessiongenerate  => 0,
         syncitems        => 0,
     );
+
+    %LJ::XMLRPC_USER_ACCESS = (
+        login            => 'profile_ro',
+        getfriendgroups  => 'friends_ro',
+        getfriends       => 'friends_ro',
+        friendof         => 'friends_ro',
+        checkfriends     => 'friends_ro',
+        getdaycounts     => 'journal_ro',
+        postevent        => 'journal_rw',
+        editevent        => 'journal_rw',
+        syncitems        => 'journal_ro',
+        getevents        => 'journal_ro',
+        editfriends      => 'friends_rw',
+        editfriendgroups => 'friends_rw',
+        consolecommand   => 'console',
+        getusertags      => 'profile_ro',
+        getfriendspage   => ['journal_ro', 'friends_ro'],
+        getinbox         => 'messages',
+        sendmessage      => 'messages',
+        setmessageread   => 'messages',
+        addcomment       => 'journal_rw',
+
+        getrecentcomments => 'journal_ro',
+        getcomments       => 'journal_ro',
+        deletecomments    => 'journal_rw',
+        updatecomments    => 'journal_rw',
+        editcomment       => 'journal_rw',
+
+        getuserpics       => 'profile_ro',
+        createpoll        => 'journal_rw',
+        getpoll           => 'journal_ro',
+        editpoll          => 'journal_rw',
+        votepoll          => 'journal_rw',
+        registerpush      => 'push',
+        unregisterpush    => 'push',
+        pushsubscriptions => 'push',
+        resetpushcounter  => 'push',
+        getpushlist       => 'push',
+
+        geteventsrating   => 'ratings',
+        getusersrating   => 'ratings',
+    );
+
 }
 
 1;

Tags: livejournal, nikulochkina, nnikulochkina, pl
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