Moderator
Worked just fine
Votes
1
Replies
24
Participants
Unknown
Messages
25
Moderator
Worked just fine
Maybe the old document didn't got the new permissions some how
Moderator
Any ideas on what I can do?
For the old one?
Is this a self-hosted?
Moderator
Yes self hosted, 1.3.8, DigitalOcean
You can try connecting to your MariaDB using this gist https://gist.github.com/byawitz/885510a4d9789e97424337e9472276d7
Then you can bulk edit the permission of the collection inside the meta and collection tables
Moderator
I'll see what I can do :) Thanks
Moderator
Looking in the database all the permissions seem to be correct. I've not changed anything yet.
Moderator
That one empty array should be empty
Moderator
I removed the permissions and then added them back and am getting this.
Moderator
I can fetch the document I'm looking to update and see it has the correct permissions. I've put both my get and updates here, maybe I'm just blind and not seeing something?
Did you upgrade to 1.3.8?
Do you have relationships on the collection?
Moderator
Yes and yes
Moderator
I guess the new record that was created has no actual relationships made, is the issue authorization on the relationship?
Possibly. Does the user have update access to the related document?
Moderator
no only read
That's probably it then
Moderator
:( I knew it would be something easy I just overlooked.
Moderator
Yep, that fixed it. Thank you very much!
Moderator
[SOLVED] Document Authorization
We're working on a ton of updates to relationships. One of which is allowing updating a document that has a relationship as long as you're not updating the related document
Moderator
Sounds awesome! :) Excited for the upcoming updates.
Was out
Already got solved by Steven as usual 😉
Moderator
Thanks for all your help though! I appreciate the assistance :)