Changeset 8265
- Timestamp:
- 07/09/12 16:49:18 (12 years ago)
- Location:
- branches/OaaS/HeuristicLab.Services.Access/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Access/3.3/HeuristicLab.Services.Access-3.3.csproj
r8040 r8265 87 87 <Reference Include="Microsoft.CSharp" /> 88 88 <Reference Include="System" /> 89 <Reference Include="System.Configuration" /> 89 90 <Reference Include="System.Core" /> 90 91 <Reference Include="System.Data" /> -
branches/OaaS/HeuristicLab.Services.Access/3.3/RoleVerifier.cs
r8040 r8265 27 27 public class RoleVerifier : IRoleVerifier { 28 28 public bool IsInRole(string role) { 29 return Roles. IsUserInRole(role);29 return Roles.Provider.IsUserInRole(Membership.GetUser().UserName, role); 30 30 } 31 31 public bool IsInAnyRole(params string[] roles) { 32 return roles.Any(x => Roles. IsUserInRole(x));32 return roles.Any(x => Roles.Provider.IsUserInRole(Membership.GetUser().UserName, x)); 33 33 } 34 34 public bool IsInAllRoles(params string[] roles) {
Note: See TracChangeset
for help on using the changeset viewer.