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
Projects
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 created this issue from a note in M4, M5 (To do) Jul 2, 2020
@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
@F3Joule F3Joule moved this from To do to In progress in M4, M5 Jul 6, 2020
@subsocialdev subsocialdev removed this from In progress in M4, M5 Nov 6, 2020
@subsocialdev subsocialdev added this to To do in Backlog via automation Nov 6, 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
No open projects
Backlog
  
To do
Development

No branches or pull requests

2 participants