It works with my admin account.
But not works with register users.
It's cause the below error
POST https://www.nodeloc.com/api/discussions
Flarum\User\Exception\PermissionDeniedException in /www/wwwroot/youqian.me/vendor/flarum/core/src/User/User.php:611
Stack trace:
#0 /www/wwwroot/youqian.me/vendor/flarum/core/src/User/User.php(639): Flarum\User\User->assertPermission()
#1 /www/wwwroot/youqian.me/vendor/datlechin/flarum-chatgpt/src/Listener/PostChatGPTAnswer.php(51): Flarum\User\User->assertCan()
#2 /www/wwwroot/youqian.me/vendor/illuminate/events/Dispatcher.php(424): Datlechin\FlarumChatGPT\Listener\PostChatGPTAnswer->handle()
#3 /www/wwwroot/youqian.me/vendor/illuminate/events/Dispatcher.php(249): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}()
#4 /www/wwwroot/youqian.me/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php(33): Illuminate\Events\Dispatcher->dispatch()
#5 /www/wwwroot/youqian.me/vendor/flarum/core/src/Discussion/Command/StartDiscussionHandler.php(97): Flarum\Discussion\Command\StartDiscussionHandler->dispatchEventsFor()
#6 /www/wwwroot/youqian.me/vendor/illuminate/bus/Dispatcher.php(122): Flarum\Discussion\Command\StartDiscussionHandler->handle()
#7 /www/wwwroot/youqian.me/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
#8 /www/wwwroot/youqian.me/vendor/clarkwinkelmann/flarum-ext-vote-with-money/src/Providers/PipeThroughPollVote.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#9 /www/wwwroot/youqian.me/vendor/illuminate/pipeline/Pipeline.php(149): ClarkWinkelmann\VoteWithMoney\Providers\PipeThroughPollVote->ClarkWinkelmann\VoteWithMoney\Providers\{closure}()
#10 /www/wwwroot/youqian.me/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#11 /www/wwwroot/youqian.me/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#12 /www/wwwroot/youqian.me/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#13 /www/wwwroot/youqian.me/vendor/flarum/core/src/Api/Controller/CreateDiscussionController.php(62): Illuminate\Bus\Dispatcher->dispatch()
#14 /www/wwwroot/youqian.me/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(116): Flarum\Api\Controller\CreateDiscussionController->data()
#15 /www/wwwroot/youqian.me/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\Api\Controller\AbstractSerializeController->handle()
#16 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractCreateController->handle()
#17 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#18 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ExecuteRoute->process()
#19 /www/wwwroot/youqian.me/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#20 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\ThrottleApi->process()
#21 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#22 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CheckCsrfToken->process()
#23 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
#24 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
#25 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#26 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
#27 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#28 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#29 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#30 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()
#31 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#32 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()
#33 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#34 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()
#35 /www/wwwroot/youqian.me/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#36 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\FakeHttpMethods->process()
#37 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#38 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ParseJsonBody->process()
#39 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#40 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()
#41 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#42 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\InjectActorReference->process()
#43 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#44 /www/wwwroot/youqian.me/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#45 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\RequestHandler->process()
#46 /www/wwwroot/youqian.me/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#47 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePathRouter->process()
#48 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#49 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Laminas\Stratigility\Middleware\OriginalMessages->process()
#50 /www/wwwroot/youqian.me/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#51 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePath->process()
#52 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#53 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ProcessIp->process()
#54 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#55 /www/wwwroot/youqian.me/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()
#56 /www/wwwroot/youqian.me/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(73): Laminas\Stratigility\MiddlewarePipe->handle()
#57 /www/wwwroot/youqian.me/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#58 /www/wwwroot/youqian.me/public/index.php(26): Flarum\Http\Server->listen()
#59 {main}
And I had assign permissions for this tag.
May you check it . Thank you.