according to my docker compose: 1.2.0
I am not doing anything fancy:
await database.updateDocument(dbId, collIds['public-tasks'], currentAvailablePublicTask.$id, {
...someData
}, [
Permission.read(Role.team(teamIds.worker))
]);
And what error are you getting?
What version of the SDK are you using?
according to my package lock: node-appwrite-8.2.0
I get no error
Everything seems fine...you're saying the permission doesn't get updated?
This seems odd. I'll try again later. Maybe I am just missing something (I guess I didn't await correctly)
Your collection has document level permissions enabled right?
Yes
🤔🤔🤔
if you try updating the data, does the data update successfully?
Can you also check the permissions of your API key?
yes the data updates perfectly
I gave my api key full permission. activated all scopes.
hmmmmmmm that's really strange 😅 I can't repro this on 1.0 or 1.2
Do you mind trying a different permission?
like a brute force read.any
I wonder if team permissions are broken
Thanks for not trusting me... I f*ed up. It works like you guys were telling and the error was on my part.
Thanks @VincentGe and @Steven for you time 🙂
what was the problem?
I'm glad it worked out 😛 Happy to brain storm ideas with you <:appwritepeepo:902865250427215882>
sorry for the late answer. I myself was the problem. I deployed the wrong code somehow and didn't notice
thank you ❤️
[SOLVED] Updating Document Permissions
Recommended threads
- Dart Runtime as Function is missing
Hey guys, I set the _APP_FUNCTIONS_RUNTIMES to dart-3.10 and redeployed the appwrite stack but unfortunately the dart runtime doesnt show up. I copied the val...
- Retrieving Data From Backups
Hiya, I have a user requesting for data they accidentally deleted. I don't have document history built into my app. Is there a way to extract data from the auto...
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...