What I am needing help with is getting $2sxc().data().update()
[I do have the proper info inside the ()s, just left it out for readability] to function for accounts in roles given view permissions to a page. Everything works when I am logged in with my admin account, but when I test it on my testing account it just throws a 400 error in the console for the post to the API before immediately refreshing the page. The command $2sxc().manage().run()
with action: edit and new both work fine for the test account.
I have the features PublicEditForm and PublicUploadFiles enabled in the global apps management, and have added a permission on the content-type granting Edit (Create, Read, Update, Delete) on the View condition which is what got $2sxc().manage().run()
working on the test account, and in the view file GetService<IPageService>().Activate("2sxc.JsCms");
and GetService<IPageService>().Activate("2sxc.JsCore");
even though "2sxc.JsCms" is supposed to include it already. It seems like I need to add another permission or grant a different option other than Edit (Create, Read, Update, Delete), but the other options don't appear to be correct for this.
Some extra background info in case it helps: The buttons calling $2sxc().data().update()
are there to update a status field for the user. This isn't a public page as it is locked down to only be viewable by users in a specific role. The site is running 2sxc v13.12.1LTS.