FAQ/data-source-level-security.md
... ...
@@ -4,7 +4,7 @@
4 4
5 5
To limit what data sources a user can see, apply the visible tables setting. Its argument is an array of strings. Izenda recommends creating database views to simplify the user experience. Izenda Reports will only show views, if you set ``ViewsOnly`` to _true_. Here is an example:
6 6
7
-```
7
+```csharp
8 8
//set access to which tables and views are visible
9 9
10 10
Izenda.AdHoc.AdHocSettings.VisibleDataSources = new string[]{ "Products", "Categories" };