getAuthority()->isRegistered() ) { $this->dieWithError( 'apierror-mustbeloggedin-generic', 'login-required' ); } if ( !$this->getAuthority()->isAllowed( 'echo-read-notifications' ) ) { $this->dieWithError( [ 'apierror-permissiondenied', $this->msg( 'action-echo-read-notifications' ), ] ); } } }