I have a base class.
[PrincipalPermission(SecurityAction.Demand, Role = "Admin")]
public class Base
{
}
and derived one.
[PrincipalPermission(SecurityAction.Demand, Role = "Developer")]
public class Derived : Base
{
}
I want to let user with "Developer" rights to create an object of Derived. But I am unable to do as base class has permission to admin.
Admin should be able to create object of all derived classes. So I want to put the permission in base class for admin.
How can I sort this problem.