Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor: Refactor the plugin UI callback permission checks.
Let's only add our UI hooks if the user has the required permissions. This way we can avoid duplicating the permission checks in each individual callback.
- Loading branch information
1 parent
4f6afa9
commit 1cb79bc
Showing
1 changed file
with
15 additions
and
8 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