You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and didn't find any that were similar
I have considered creating a pull request with fixes instead of a bug report and want to proceed
Current Behavior
Thank you for the project ❤️
I'm developing a lightweight server for Anytype, reimplementing RPC for self-hosting.
I've observed that user verification currently requires confirming that a user has access not only to the Space but also to individual records. This seems redundant for read-only operations RPC.
Example
For the RPC method SpaceInfo, which returns the status of a Space:
Consider verifying only that an account has access to the space without checking permissions.CanWrite() in all RPC calls. It would be beneficial to differentiate between CanRead and CanWrite permissions for all RPC operations.
Steps To Reproduce
N/A
Environment
N/A
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Have you read a contributing guide?
Current Behavior
Thank you for the project ❤️
I'm developing a lightweight server for Anytype, reimplementing RPC for self-hosting.
I've observed that user verification currently requires confirming that a user has access not only to the Space but also to individual records. This seems redundant for read-only operations RPC.
Example
For the RPC method SpaceInfo, which returns the status of a Space:
any-sync-filenode/filenode/rpchandler.go
Lines 217 to 231 in 2b1efe4
There's a call to StoreKey that always checks
permissions.CanWrite()
:any-sync-filenode/filenode/filenode.go
Lines 191 to 200 in 2b1efe4
Expected Behavior
Consider verifying only that an account has access to the space without checking
permissions.CanWrite()
in all RPC calls. It would be beneficial to differentiate betweenCanRead
andCanWrite
permissions for all RPC operations.Steps To Reproduce
N/A
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: