#7459
Vladimir
Keymaster

Hi,

Code Snippets plugin uses ‘manage_options’ user capability and ‘manage_network_options’ for the WordPress multisite.
It allows to replace default user capability via custom filters:
code_snippets_cap :


/**
* Retrieve the name of the capability required to manage sub-site snippets
*
* @return string
*/
public function get_cap_name() {
	return apply_filters( 'code_snippets_cap', 'manage_options' );
}

and
code_snippets_network_cap:


/**
* Retrieve the name of the capability required to manage network snippets
*
* @return string
*/
public function get_network_cap_name() {
	return apply_filters( 'code_snippets_network_cap', 'manage_network_options' );
}

Take into account that user who can execute PHP code at the site server can get superadmin access in a minute. You should trust to such person.