20 private function authorizeActionOrThrow(
24 $status = PermissionStatus::newEmpty();
26 $this->handleStatus( $status );
36 private function authorizeReadOrThrow(
41 $status = PermissionStatus::newEmpty();
42 if ( !$authority->
authorizeRead( $action, $target, $status ) ) {
43 $this->handleStatus( $status );
53 private function authorizeWriteOrThrow(
58 $status = PermissionStatus::newEmpty();
60 $this->handleStatus( $status );
75 $this->throwExceptionForStatus(
77 MessageValue::new(
'rest-rate-limit-exceeded', [ $permission ] ),
82 $this->throwExceptionForStatus(
84 MessageValue::new(
'rest-permission-error', [ $permission ] ),
Interface for objects (potentially) representing an editable wiki page.