HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: /var/www/html/wp-content/plugins/wordpress-seo/src/introductions/application/user-allowed-trait.php
<?php

namespace Yoast\WP\SEO\Introductions\Application;

trait User_Allowed_Trait {

	/**
	 * Determines whether the user has the required capabilities.
	 *
	 * @param string[] $capabilities The required capabilities.
	 *
	 * @return bool Whether the user has the required capabilities.
	 */
	private function is_user_allowed( $capabilities ) {
		foreach ( $capabilities as $capability ) {
			if ( ! \current_user_can( $capability ) ) {
				return false;
			}
		}

		return true;
	}
}