diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2005-03-14 17:00:59 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2005-03-14 17:00:59 +0300 |
commit | 1001781a45e42e7890725f0ebb845bdc16e1e822 (patch) | |
tree | a8431998237b9ae80b2b9dda3d75cc0a055956b5 /mcs/class/corlib/System.Security/SecurityManager.cs | |
parent | ecbbf5f08968577b85393cd663ce81c6697c5244 (diff) |
2005-03-14 Sebastien Pouliot <sebastien@ximian.com>
* SecurityManager.cs: Fix CodeAccessPermissionTest.CustomCAS unit test
when --security is enabled (code was over-optimized ;-).
svn path=/trunk/mcs/; revision=41794
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityManager.cs')
-rw-r--r-- | mcs/class/corlib/System.Security/SecurityManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityManager.cs b/mcs/class/corlib/System.Security/SecurityManager.cs index 5dde8c93b2f..48d085cec1a 100644 --- a/mcs/class/corlib/System.Security/SecurityManager.cs +++ b/mcs/class/corlib/System.Security/SecurityManager.cs @@ -124,7 +124,7 @@ namespace System.Security { grant = (CodeAccessPermission) a.GrantedPermissionSet.GetPermission (perm.GetType ()); if (grant == null) { if (!a.GrantedPermissionSet.IsUnrestricted () || !(perm is IUnrestrictedPermission)) { - return false; + return perm.IsSubsetOf (null); } } else if (!perm.IsSubsetOf (grant)) { return false; |