From 7332ec1e85be695e44618305cd8424d8ce16ee6f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 3 Aug 2013 10:09:46 +0200 Subject: also require admin account for feed updating --- external/feedapi.php | 2 -- 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); } -- cgit v1.2.3