summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-03 10:09:46 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-03 10:10:10 +0200
commit7332ec1e85be695e44618305cd8424d8ce16ee6f (patch)
treeef2bd74c82bdac7215ec1e687dd02e00580daa58
parent08d9474aaccd67c6e8a19abaf1d5ff6296063215 (diff)
also require admin account for feed updating
-rw-r--r--external/feedapi.php2
-rw-r--r--tests/unit/external/FeedAPITest.php3
2 files changed, 2 insertions, 3 deletions
diff --git a/external/feedapi.php b/external/feedapi.php
index 319d93cee..fba43b249 100644
--- a/external/feedapi.php
+++ b/external/feedapi.php
@@ -203,8 +203,6 @@ class FeedAPI extends Controller {
/**
- * @IsAdminExemption
- * @IsSubAdminExemption
* @CSRFExemption
* @Ajax
* @API
diff --git a/tests/unit/external/FeedAPITest.php b/tests/unit/external/FeedAPITest.php
index ee9e6b60a..670f5f942 100644
--- a/tests/unit/external/FeedAPITest.php
+++ b/tests/unit/external/FeedAPITest.php
@@ -122,7 +122,8 @@ class FeedAPITest extends ControllerTestUtility {
public function testUpdateAnnotations(){
- $this->assertDefaultAnnotations('update');
+ $annotations = array('Ajax', 'CSRFExemption', 'API');
+ $this->assertAnnotations($this->feedAPI, 'update', $annotations);
}