Removed restricted mode - Fix #11972

This commit is contained in:
georg3tom
2020-03-09 02:20:20 +05:30
committed by Björn Linse
parent 0a95549d66
commit 7777532ceb
15 changed files with 55 additions and 200 deletions

View File

@@ -7152,7 +7152,7 @@ void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv,
rettv->v_type = VAR_STRING;
rettv->vval.v_string = NULL;
if (check_restricted() || check_secure()) {
if (check_secure()) {
return;
}
@@ -10418,7 +10418,7 @@ Channel *find_job(uint64_t id, bool show_error)
void script_host_eval(char *name, typval_T *argvars, typval_T *rettv)
{
if (check_restricted() || check_secure()) {
if (check_secure()) {
return;
}