Security cleanup, hardening and malware removal
This commit is contained in:
@@ -27,6 +27,15 @@ class Plugin_Settings extends Base {
|
||||
return 'plugin-settings';
|
||||
}
|
||||
|
||||
/**
|
||||
* Restrict settings changes to administrators.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function permission_callback() {
|
||||
return current_user_can( 'manage_options' );
|
||||
}
|
||||
|
||||
/**
|
||||
* [callback description]
|
||||
* @param [type] $request [description]
|
||||
|
||||
Reference in New Issue
Block a user