Skip to content
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

[Feature Request]: Remove permission by accountID, appName and address #15

Open
simonmcl opened this issue May 12, 2022 · 0 comments
Open
Assignees

Comments

@simonmcl
Copy link

There are currently 3 methods for removing permissions removeAll, removeForAccount and removeByType. When theres only 1 wallet, all will do the same thing, as the accountIdentifier is always the same:

 storageManager.removeAllPermissions(where: { $0.accountID == accountIdentifier })

What i'm looking for is to remove a permissions for a specific app. I want to give users the ability to say remove permission for OBJKT.com, for wallet address X. So something more like

 storageManager.removeAllPermissions(where: { $0.appMetadata.senderID == app && $0.address == address })

I'm not sure if accountID is needed in the above as well or not

@jsamol jsamol self-assigned this May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants