#Database permission issue

8 messages · Page 1 of 1 (latest)

cold basin
#

Hello,

I keep getting this error: AppwriteException: The current user is not authorized to perform the requested action.
However, I am given full access to the collection and I gave the All access to view the collections. I am now unsure how this can be an issue when I set permissions up correctly.

#
const promise = databases.getDocument('66297275000fdd77a26f', '662972bf00173ab3d363', '6629781f002d752eb79f')
    promise.then((response) => {
        return response;
    }, (error) => {
        console.log(error)
});```

code
#

I idealy want it so only logged in users can view it, however doing this for troubleshooting

wraith crow
#

Any relationships on the db?

cold basin
#

I am getting permission errors now with teams, so may not be related with the databases entirely

#

Now I added all users to be able to view the database relations, and im getting this error The current user is not authorized to perform the requested action.

I am logged in

wraith crow
#

Does the logged in user have access? Can you try doing it on a table without any relations?