fix: check user permission on bg-import and bg-export
This commit is contained in:
parent
74d88a1728
commit
84985b01ca
|
@ -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() {
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue