IVET#32909 Voorkom AiAi als gebruiker maar één rapport mag zien
svn path=/Website/branches/v2015.1/; revision=25339
This commit is contained in:
@@ -128,7 +128,7 @@ function model_reportsx(usrrap_key, params)
|
|||||||
this.includes["columns"].model._view2columns(params.filter.id);
|
this.includes["columns"].model._view2columns(params.filter.id);
|
||||||
var json = api2.sql2json (params, sql, this );
|
var json = api2.sql2json (params, sql, this );
|
||||||
}
|
}
|
||||||
if (json.length == 1 && !this.is_safe_view(json[0].viewname))
|
if (json.length == 1 && "viewname" in json[0] && !this.is_safe_view(json[0].viewname))
|
||||||
this.fields["viewname"].readonly = true;
|
this.fields["viewname"].readonly = true;
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
|
|||||||
Reference in New Issue
Block a user