Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Check for UpdateOwn*** and UpdateAny*** permissions in update_space and update_post #41

Open
subsocialdev opened this issue Jul 2, 2020 · 0 comments
Assignees
Labels
bug Something isn't working refactoring
Milestone

Comments

@subsocialdev
Copy link

We need to check against a list of permissions at once in such dispatches as update_***(). For example for Space we need to check UpdateOwnSubspaces or UpdateAnySubspace

Also, add this check for multiple perms to update_post(). See here https://github.com/dappforce/dappforce-subsocial-node/blob/master/pallets/posts/src/lib.rs#L286

@subsocialdev subsocialdev added bug Something isn't working refactoring labels Jul 2, 2020
@subsocialdev subsocialdev added this to the M4 (current) milestone Jul 2, 2020
@subsocialdev subsocialdev changed the title Make possible to check for a list of permissions with a single call of ensure_account_has_space_permission() Check for UpdateOwn*** and UpdateAny*** permissions in update_space and update_post Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working refactoring
Projects
None yet
Development

No branches or pull requests

2 participants