summaryrefslogtreecommitdiff
path: root/actions/apitimelineuser.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-11-15 14:14:09 -0500
committerEvan Prodromou <evan@status.net>2010-11-15 14:14:09 -0500
commitd038d0fa465f76395f8e341a04a64661b631c122 (patch)
tree5c9c19c237494cf9497095e4b36861c0c0fa75ba /actions/apitimelineuser.php
parent8a21b13ee93cf46626ba9e99a4fda44587e6d1a1 (diff)
AtomPub-related actions are only read-only on GET
Diffstat (limited to 'actions/apitimelineuser.php')
-rw-r--r--actions/apitimelineuser.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php
index e4a8b596e..f716232e4 100644
--- a/actions/apitimelineuser.php
+++ b/actions/apitimelineuser.php
@@ -241,9 +241,14 @@ class ApiTimelineUserAction extends ApiBareAuthAction
*
* @return boolean true
*/
+
function isReadOnly($args)
{
- return true;
+ if ($_SERVER['REQUEST_METHOD'] == 'GET') {
+ return true;
+ } else {
+ return false;
+ }
}
/**