subsocial-solochain icon indicating copy to clipboard operation
subsocial-solochain copied to clipboard

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

Open subsocialdev opened this issue 4 years ago • 0 comments

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 avatar Jul 02 '20 23:07 subsocialdev