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-24 16:36:06 -0800
commit1f8ddf716d0b54cc40aa89e595fe2232a10e7a2a (patch)
treee4634fe418ddde6d790e18a41c9e01f28bb75930 /lib/api.php
parentc2c930a8556cca866dfa0eba2fe1a8242eef71f2 (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.
*