New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Appwrite dataProvider
meta.permissions (@refinedev/appwrite
)
#5767
Comments
Hey @abdelrahman-essawy, it seems appwrite data provider appends permissions, on top of the default ones. It could be updated to have a logic, if user provides permissions, it only uses them. As a workaround, you can swizzle the data provider and use it. See the documentation here. |
@BatuhanW Great!, I will be more than happy to open PR for that, if that's okay. |
@abdelrahman-essawy sure thing. Only concern is, this could be a breaking change for existing users (Not sure if it's a valid case tho). Perhaps, we could add Assigning issue to you, looking forward to your PR! |
Hey @abdelrahman-essawy discussed with the team, and decided to go with this implementation.
|
isn't that a breaking change? users who didn't pass anything before, expects to have notice that if you passed an empty array of appwrite will treat it with no permissions at all. |
dataProvider
meta.permissions (@refinedev/appwrite)dataProvider
meta.permissions (@refinedev/appwrite
)
@BatuhanW hello, what do you think of this ? |
Hey @abdelrahman-essawy, there is no different with passing an empty array and Permission.any from AppWrite's side. |
Describe the bug
Hello,
how to override these default permissions in appwrite dataProvider? I don't want public permissions, only the permissions i set in meta at creation/edition.
I was able to walk-around it by making custom
dataProviderWrapper
that overrides the originalcreate
methodSteps To Reproduce
Expected behavior
expected behavior is to be able to complete override the
meta
params.Packages
Additional Context
sample after override
The text was updated successfully, but these errors were encountered: