Forum Discussion
jeffshurtliff
5 years agoBoss
Hi PerihanKamel,
In this situation wouldn't it make sense to instead pass what will become the message body via Ajax to a custom endpoint and then leverage the restadmin directive within the endpoint to create the message?
That's what seems the most straightforward to me but maybe I'm not understanding the full context.
(Of course, if the user doesn't have access to the destination forum then I'm not sure if the API call will be successful or if it'll return with a permissions-related error even when using the restadmin directive. If it is the latter, then you may need to create the message with a service account as the author that does have access to that location, if that makes sense.)
Thanks!
Jeff
Edit: Clarification in last paragraph
Related Content
- 8 months ago
- 6 years agoInactive User