In my C# MVC project users have access to modify Views in order to customize their pages look (they can edit views cshtml and use Razor engine).
How can I restrict view engine to access some namespaces, like System.IO, System.Sql ?
I planned to remove "System.XXX" in markups from users, but some namespaces are imported by default, like System.IO. so users still can run some dangerous commands like File.Delete...
So again, how can I limit users access to just edit CSHTML and some namespaces not all namspaces?