|
From: <mar...@us...> - 2010-02-19 23:36:20
|
Revision: 36
http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=36&view=rev
Author: marioarce
Date: 2010-02-19 23:36:14 +0000 (Fri, 19 Feb 2010)
Log Message:
-----------
removed hard-wired code
Modified Paths:
--------------
source/trunk/CronosControl/Libraries/BusinessLogic/ProjectUser/ProjectUserManager.cs
Modified: source/trunk/CronosControl/Libraries/BusinessLogic/ProjectUser/ProjectUserManager.cs
===================================================================
--- source/trunk/CronosControl/Libraries/BusinessLogic/ProjectUser/ProjectUserManager.cs 2010-02-19 15:01:32 UTC (rev 35)
+++ source/trunk/CronosControl/Libraries/BusinessLogic/ProjectUser/ProjectUserManager.cs 2010-02-19 23:36:14 UTC (rev 36)
@@ -215,7 +215,7 @@
List<string> userProjectRoles = (from upr in cronosControlEntities.UserProjectRole
join ro in cronosControlEntities.Role
on new { upr.Role.IdRole } equals new { ro.IdRole }
- where (upr.User.IdUser == user.IdUser && upr.Project.IdProject == 2/*project.IdProject*/)
+ where (upr.User.IdUser == user.IdUser && upr.Project.IdProject == project.IdProject)
select ro.Name).ToList<string>();
string[] result = new string[userProjectRoles.Count];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|