summaryrefslogtreecommitdiff
path: root/lib/api.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-24 22:42:29 -0500
committerEvan Prodromou <evan@status.net>2010-01-24 22:42:29 -0500
commit536170d7884a58d279a01e5ed5fbc267840a17ba (patch)
tree4a978b909939ba238af500d982f48735d0953943 /lib/api.php
parente6cf293db8c465b21899fd328152a991501a5038 (diff)
parent4daf76212a6802863d20c6af7597eddded227ae8 (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
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.
*