-
Notifications
You must be signed in to change notification settings - Fork 47
docs: Improve permission checking documentation and examples #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from 3 commits
1a25358
2261c0a
bb906c3
0fd3448
99ca411
27b7b1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,7 +163,7 @@ public function run_ability_permissions_check( $request ) { | |
| } | ||
|
|
||
| $input = $this->get_input_from_request( $request ); | ||
| if ( ! $ability->check_permissions( $input ) ) { | ||
| if ( true !== $ability->check_permissions( $input ) ) { | ||
|
||
| return new \WP_Error( | ||
| 'rest_ability_cannot_execute', | ||
| __( 'Sorry, you are not allowed to execute this ability.' ), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.