I've created some custom modules which I've set up to inherit from WebModule.
According to this blog post
"If module inherits from WebModule class, all users will be able to perform all operations"
However a new user I've created, who is assigned to a new role, gets the following error when trying to view any of my custom modules in the Sitefinity admin pages.
Thanks in advance.
application attempted to perform an operation not allowed by the
security policy. To grant this application the required permission
please contact your system administrator or change the application's
trust level in the configuration file.
Exception Details: System.Security.SecurityException: Permission denied.
Line 134: // gets the reference of control panel and assigns it the provider name
Line 135: ControlPanel ctrlPnl = ((ControlPanel)base.ControlPanel);
Line 136: ctrlPnl.ProviderName = this.providerName;
Line 138: // initializes control container and template