summaryrefslogtreecommitdiff
path: root/lib/api.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-14 02:16:03 +0000
committerZach Copley <zach@status.net>2010-01-14 02:41:10 +0000
commitbbde4d42cc550adfeeeb73e8c411b627c0d025aa (patch)
tree6a7a110b33228f4068fa3afe15f50a6fb0ea3d83 /lib/api.php
parent21cef64e883ee2b45580c74f834f5eb500c6eb0e (diff)
Check for read vs. read-write access on OAuth authenticated API mehtods.
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php5
1 files changed, 5 insertions, 0 deletions
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.
*