[ticket/17363] Remove and fix leftover code

PHPBB-17363

Signed-off-by: Matt Friedman <maf675@gmail.com>
This commit is contained in:
Matt Friedman 2024-07-03 07:30:07 -07:00
parent fe40b0d3a3
commit e0cf35c588
No known key found for this signature in database

View file

@ -62,7 +62,7 @@ class manifest
*/ */
public function handle(): JsonResponse public function handle(): JsonResponse
{ {
if ($this->user->data['is_bot'] || $this->user->data['user_type'] == USER_INACTIVE) if ($this->user->data['is_bot'])
{ {
throw new http_exception(Response::HTTP_FORBIDDEN, 'NO_AUTH_OPERATION'); throw new http_exception(Response::HTTP_FORBIDDEN, 'NO_AUTH_OPERATION');
} }
@ -83,8 +83,8 @@ class manifest
* Event to modify manifest data before it is outputted * Event to modify manifest data before it is outputted
* *
* @event core.modify_manifest * @event core.modify_manifest
* @var array manifest Array of config values to display and process * @var array manifest Array of manifest members
* @var string board_path Mode of the config page we are displaying * @var string board_path Path to the board root
* @since 4.0.0-a1 * @since 4.0.0-a1
*/ */
$vars = array('manifest', 'board_path'); $vars = array('manifest', 'board_path');