-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: admin can change product author from rest api (#1913)
* update: admin can change product author from rest api * refactor: extracted method for better readability * fix: admin capability for api access * fix: add `validate_post_author_override()` added * update: remove changed author's `dokan_add_product` check * update: override author's `dokan_add_product` check for admin * update: post status changed according to override author's selling capability * update: post status changed to draft according to override author's selling capability --------- Co-authored-by: Nurul Umbhiya <nurul-umbhiya@users.noreply.github.com>
- Loading branch information
1 parent
4ba9597
commit 87b95cc
Showing
2 changed files
with
70 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters