Rank 1: Thread
Hi,
I'am using Android SDK and after createEmailSession i receive "The current user is not authorized to perform the requested action." when ai try to query database
Votes
0
Replies
19
Participants
Unknown
Messages
20
Rank 1: Thread
Hi,
I'am using Android SDK and after createEmailSession i receive "The current user is not authorized to perform the requested action." when ai try to query database
Admin
What's your code?
Rank 1: Thread
override suspend fun login(email: String, password: String): Response<Session, Exception> {
return try {
Response.Success(account.createEmailSession(email, password))
}catch (e: Exception){
Response.Failure(e)
}
}
Rank 1: Thread
var respose = databases.getDocument(
databaseId = Constants.AppWriteData.db_id,
collectionId = Constants.AppWriteData.Collections.admins_id,
documentId = userId
).toMap()
Rank 1: Thread
client it's injected
Rank 1: Thread
For database needs add headers in client?
Admin
What permissions did you set on the collection and document?
Also, are you sure the get document call happens after login?
Rank 1: Thread
Where I can check collection permissions?
Rank 1: Thread
Yes, I'm sure. The get document happens after login
Admin
Appwrite Console. For collection, look at the collection settings. For document, look at the document
Rank 1: Thread
Ooo, thx a lot!!
Admin
Did that fix your problem?
Rank 1: Thread
Yes
Rank 1: Thread
Can you help my with "
SMTP is disabled on your Appwrite instance. You can learn more about setting up SMTP in our docs." too?
Admin
You can refer to our docs https://appwrite.io/docs/email-delivery and search the #channel posts. If you still need help, feel free to create a new post
Admin
[SOLVED] The current user is not authorized to perform the requested action.
Rank 2: Process
where can i find AppWrites' android studio JAVA documentation?
Admin
best to create a new post instead of posting in here
Rank 2: Process
Thanks. But, I dont have permission to make a post in the Appwrite #channel channel.
Admin
Create a new post in #channel please