From bbde4d42cc550adfeeeb73e8c411b627c0d025aa Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Thu, 14 Jan 2010 02:16:03 +0000 Subject: Check for read vs. read-write access on OAuth authenticated API mehtods. --- lib/api.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/api.php') diff --git a/lib/api.php b/lib/api.php index 707e4ac21..794b14050 100644 --- a/lib/api.php +++ b/lib/api.php @@ -53,6 +53,9 @@ if (!defined('STATUSNET')) { class ApiAction extends Action { + const READ_ONLY = 1; + const READ_WRITE = 2; + var $format = null; var $user = null; var $auth_user = null; @@ -62,6 +65,8 @@ class ApiAction extends Action var $since_id = null; var $since = null; + var $access = self::READ_ONLY; // read (default) or read-write + /** * Initialization. * -- cgit v1.2.3-54-g00ecf