]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
These API methods should return true for ->isReadOnly($args)!
authorZach Copley <zach@status.net>
Thu, 28 Jan 2010 00:39:40 +0000 (00:39 +0000)
committerZach Copley <zach@status.net>
Thu, 28 Jan 2010 00:44:55 +0000 (00:44 +0000)
actions/apiaccountratelimitstatus.php
actions/apifriendshipsexists.php
actions/apifriendshipsshow.php
actions/apigroupismember.php
actions/apigroupshow.php
actions/apihelptest.php
actions/apistatusnetconfig.php
actions/apistatusnetversion.php
actions/apiusershow.php

index 1a5afd552c90d8c1d43b6ecdb0cd257dfd40d356..f19e315bf88e5d5b0dc2b5f4b355bc5de4cbf62f 100644 (file)
@@ -105,7 +105,22 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction
              print json_encode($out);
          }
 
-         $this->endDocument($this->format);
+        $this->endDocument($this->format);
+    }
+
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
     }
 
 }
index c040b9f6ad87edc455137432ca0d90d6774440fc..ca62b5f51420b81009d766bdebb30e6fd17d359d 100644 (file)
@@ -116,4 +116,19 @@ class ApiFriendshipsExistsAction extends ApiPrivateAuthAction
         }
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }
index 73ecc9249a1d437c43aa5f74cefe6ed46f865294..f29e63713759ac007f81afb7b63823fb9b144276 100644 (file)
@@ -87,7 +87,6 @@ class ApiFriendshipsShowAction extends ApiBareAuthAction
         return true;
     }
 
-
     /**
      * Determines whether this API resource requires auth.  Overloaded to look
      * return true in case source_id and source_screen_name are both empty
@@ -165,4 +164,19 @@ class ApiFriendshipsShowAction extends ApiBareAuthAction
 
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }
index 69ead0b531af95c53f9cf82148eb5a3c19ddd30e..97f8435614e9da39662c67155f0fd1fba1daf3d6 100644 (file)
@@ -119,4 +119,19 @@ class ApiGroupIsMemberAction extends ApiBareAuthAction
         }
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }
index 7aa49b1bf37c71c77763ea781b199814eca6ed76..95d6f95afa8a18be770d5d8a0d00225563638d16 100644 (file)
@@ -149,4 +149,19 @@ class ApiGroupShowAction extends ApiPrivateAuthAction
         return null;
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }
index 7b4017531cc73de9e5de3a516f8fa1ef67f9564b..d0e9e4926f55ca85adfce968ef50a9feb9cb83f3 100644 (file)
@@ -92,5 +92,20 @@ class ApiHelpTestAction extends ApiPrivateAuthAction
         }
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }
 
index ab96f2e5f9f27e1466ba66dc091a2fe8d62c850f..dc1ab8685b8a05dee7db140b0b0e3920b0c8e26a 100644 (file)
@@ -138,5 +138,20 @@ class ApiStatusnetConfigAction extends ApiAction
         }
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }
 
index 5109cd8062090a677069a58c136cc001e461c9a1..d0948075978210c76a8816fa7b68af9b45090e1a 100644 (file)
@@ -98,5 +98,20 @@ class ApiStatusnetVersionAction extends ApiPrivateAuthAction
         }
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }
 
index a7fe0dcc1e2cddfa68a6f23038e53e7c7bcc4bc2..6c8fad49ba9f5caac1ea15fb73867606a0f4d056 100644 (file)
@@ -123,4 +123,19 @@ class ApiUserShowAction extends ApiPrivateAuthAction
 
     }
 
+    /**
+     * Return true if read only.
+     *
+     * MAY override
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }