IVET#32909 Voorkom AiAi als gebruiker maar één rapport mag zien

svn path=/Website/branches/v2015.1/; revision=25339
This commit is contained in:
Jos Groot Lipman
2015-05-29 09:38:28 +00:00
parent cdcfec4163
commit 19ce816177

View File

@@ -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;