Golden 还是不可以。
DEBUG内的内容:
POST https://discuss.flarum.org.cn/api/posts/5714
{
"errors": [
{
"status": "403",
"code": "permission_denied",
"detail": "Flarum\\User\\Exception\\PermissionDeniedException in /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/User/AssertPermissionTrait.php:31\nStack trace:\n#0 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/User/AssertPermissionTrait.php(61): FoF\\Reactions\\Listener\\SaveReactionsToDatabase->assertPermission(false)\n#1 /www/wwwroot/discuss.flarum.org.cn/vendor/fof/reactions/src/Listener/SaveReactionsToDatabase.php(73): FoF\\Reactions\\Listener\\SaveReactionsToDatabase->assertCan(Object(Flarum\\User\\User), 'react', Object(Flarum\\Post\\CommentPost))\n#2 /www/wwwroot/discuss.flarum.org.cn/vendor/illuminate/events/Dispatcher.php(360): FoF\\Reactions\\Listener\\SaveReactionsToDatabase->whenSaving(Object(Flarum\\Post\\Event\\Saving))\n#3 /www/wwwroot/discuss.flarum.org.cn/vendor/illuminate/events/Dispatcher.php(209): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('Flarum\\\\Post\\\\Eve...', Array)\n#4 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Post/Command/EditPostHandler.php(81): Illuminate\\Events\\Dispatcher->dispatch('Flarum\\\\Post\\\\Eve...')\n#5 /www/wwwroot/discuss.flarum.org.cn/vendor/illuminate/bus/Dispatcher.php(90): Flarum\\Post\\Command\\EditPostHandler->handle(Object(Flarum\\Post\\Command\\EditPost))\n#6 /www/wwwroot/discuss.flarum.org.cn/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(Flarum\\Post\\Command\\EditPost))\n#7 /www/wwwroot/discuss.flarum.org.cn/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Flarum\\Post\\Command\\EditPost))\n#8 /www/wwwroot/discuss.flarum.org.cn/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#9 /www/wwwroot/discuss.flarum.org.cn/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(Flarum\\Post\\Command\\EditPost))\n#10 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Api/Controller/UpdatePostController.php(57): Illuminate\\Bus\\Dispatcher->dispatch(Object(Flarum\\Post\\Command\\EditPost))\n#11 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\\Api\\Controller\\UpdatePostController->data(Object(Zend\\Diactoros\\ServerRequest), Object(Tobscure\\JsonApi\\Document))\n#12 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractSerializeController->handle(Object(Zend\\Diactoros\\ServerRequest))\n#13 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Zend\\Diactoros\\ServerRequest), Array)\n#14 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Zend\\Diactoros\\ServerRequest), Object(Closure))\n#15 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#16 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\SetLocale->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#17 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#18 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#19 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#20 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#21 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#22 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#23 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#24 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#25 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#26 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\StartSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#27 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#28 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#29 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#30 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#31 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#32 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#33 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#34 /www/wwwroot/discuss.flarum.org.cn/vendor/middlewares/request-handler/src/RequestHandler.php(84): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#35 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\RequestHandler->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#36 /www/wwwroot/discuss.flarum.org.cn/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#37 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePathRouter->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#38 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Middleware/OriginalMessages.php(41): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#39 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Zend\\Stratigility\\Middleware\\OriginalMessages->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#40 /www/wwwroot/discuss.flarum.org.cn/vendor/middlewares/base-path/src/BasePath.php(53): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#41 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePath->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#42 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#43 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(72): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\EmptyPipelineHandler))\n#44 /www/wwwroot/discuss.flarum.org.cn/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(95): Zend\\Stratigility\\MiddlewarePipe->handle(Object(Zend\\Diactoros\\ServerRequest))\n#45 /www/wwwroot/discuss.flarum.org.cn/vendor/flarum/core/src/Http/Server.php(44): Zend\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#46 /www/wwwroot/discuss.flarum.org.cn/public/index.php(22): Flarum\\Http\\Server->listen()\n#47 {main}"
}
]
}