Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api/contribution): audio permission check
This logic existed before in a similar way but was removed[1]. I'm not sure why. Also, we had a discussion[2] before on checking permissions on objects that don't have permissions and decided to avoid that and instead pass in the proper parent object into permission checks. However in that discussion the topic was chapters and it was trivial to just pass in the parent instead. Checking the permission on the Audio however is more envolved and I want this logic in _one_ place only. [1]: 9b878fc7#diff-8fce5c34154f97d93f212e64bd95fee7L61 [2]: #152 (comment)
- Loading branch information