private GetAllGlymaSecurityGroups ( ) : |
||
Résultat |
public GetAllSecurityGroupsResponse GetAllSecurityGroups(string webUrl) { GetAllSecurityGroupsResponse result = new GetAllSecurityGroupsResponse() { HasError = false }; SecurityContextManager context = new SecurityContextManager(webUrl); if (context.CurrentUser.IsUserSecurityManager()) { result = context.GetAllGlymaSecurityGroups(); } else { result.HasError = true; result.ErrorMessage = "Access Denied. User does not have permissions to access this web service method."; } return result; }
public GetAllSecurityGroupsResponse GetAllSecurityGroups(string webUrl) { GetAllSecurityGroupsResponse result = new GetAllSecurityGroupsResponse() { HasError = false }; SecurityContextManager context = new SecurityContextManager(webUrl); if (context.CurrentUser.IsUserSecurityManager()) { result = context.GetAllGlymaSecurityGroups(); } else { result.HasError = true; result.ErrorMessage = "Access Denied. User does not have permissions to access this web service method."; } return(result); }