fix: check user permission on bg-import and bg-export

This commit is contained in:
vnmedeiros 2024-03-10 18:41:19 -03:00
parent 74d88a1728
commit 84985b01ca
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class REST_Exporters_Controller extends REST_Controller {
* @throws \Exception
*/
public function export_permissions_check($request) {
return true;
return current_user_can('manage_tainacan');
}
public function get_registered_exporters() {

View File

@ -137,7 +137,7 @@ class REST_Importers_Controller extends REST_Controller {
*/
public function import_permissions_check($request){
// TODO
return true;
return current_user_can('manage_tainacan');
}
/**