X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fapi.php;h=794b14050709dddb7d9503a3cad05b829a783cce;hb=155a5d446f96651abf3eb62f9b5748e4bdfa0a76;hp=707e4ac21a421ee75260fc4bb950e43c7727c8af;hpb=c3188fd1fece2be7f7c4211d28f4a3d3a59c8fa1;p=quix0rs-gnu-social.git diff --git a/lib/api.php b/lib/api.php index 707e4ac21a..794b140507 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. *