Umbrella #25917: Move business logic from Django to middlewared and make websocket API feature complete
Convert Storage:Volumes:Change Permission to Middlewared
We need to change legacy UI to change permissions using middlewared calls (this is to make sure v1.0 API will continue working as expected)
We have an existing call called pool.dataset.permission which should be used and make sure it has all the logic it needs extracted from legacy UI.
This is a medium/high risk task, we may introduce new bugs on changing dataset permissions.
When this is done we should be able to continue to changing permissions of datasets at full extent when using legacy UI.