diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-03 10:09:46 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-03 10:10:10 +0200 |
commit | 7332ec1e85be695e44618305cd8424d8ce16ee6f (patch) | |
tree | ef2bd74c82bdac7215ec1e687dd02e00580daa58 | |
parent | 08d9474aaccd67c6e8a19abaf1d5ff6296063215 (diff) |
also require admin account for feed updating
-rw-r--r-- | external/feedapi.php | 2 | ||||
-rw-r--r-- | tests/unit/external/FeedAPITest.php | 3 |
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); } |