From: <m_h...@us...> - 2006-07-12 17:32:08
|
Revision: 108 Author: m_hildebrand Date: 2006-07-12 10:32:00 -0700 (Wed, 12 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=108&view=rev Log Message: ----------- Started implementing some rights based stuff Modified Paths: -------------- Website/App_Code/TCDB_Common.cs Website/App_Code/TCDB_Users.cs Website/Includes/Authenticate.ascx Added Paths: ----------- Website/Bin/FreeTextBox.dll Modified: Website/App_Code/TCDB_Common.cs =================================================================== --- Website/App_Code/TCDB_Common.cs 2006-07-12 17:21:24 UTC (rev 107) +++ Website/App_Code/TCDB_Common.cs 2006-07-12 17:32:00 UTC (rev 108) @@ -85,6 +85,9 @@ public static bool ASSIGNMENT_DEFAULTHIGHPRIORITY = false; public static int WORKORDER_DEFAULTID = 0; + + public static string RIGHTS_ASSIGNPERMISSION = "assignPermission"; + public static string RIGHTS_SITEADMIN = "siteAdmin"; } public static class TCDB_Help Modified: Website/App_Code/TCDB_Users.cs =================================================================== --- Website/App_Code/TCDB_Users.cs 2006-07-12 17:21:24 UTC (rev 107) +++ Website/App_Code/TCDB_Users.cs 2006-07-12 17:32:00 UTC (rev 108) @@ -338,6 +338,12 @@ return FULLNAME; } + public bool HasRight(string right, int productID) + { + // TODO: Implement this function! + return false; + } + public List<TCDB_Right> GetRights(bool reload) { // TODO: If rights == null Added: Website/Bin/FreeTextBox.dll =================================================================== (Binary files differ) Property changes on: Website/Bin/FreeTextBox.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: Website/Includes/Authenticate.ascx =================================================================== --- Website/Includes/Authenticate.ascx 2006-07-12 17:21:24 UTC (rev 107) +++ Website/Includes/Authenticate.ascx 2006-07-12 17:32:00 UTC (rev 108) @@ -112,11 +112,11 @@ TCDB_User admin = product.QALEAD; /* // TODO: What happens if there is more than one user with this right? - if (product.QALEAD.GetRights().HasRight(TCDB_Constant.RIGHTS_ASSIGNPERMISSION, product)) + if (product.QALEAD.HasRight(TCDB_Constant.RIGHTS_ASSIGNPERMISSION, product.ID)) { admin = product.QALEAD; } - else if (product.QAMANAGER.GetRights().HasRight(TCDB_Constant.RIGHTS_ASSIGNPERMISSION, product)) + else if (product.QAMANAGER.HasRight(TCDB_Constant.RIGHTS_ASSIGNPERMISSION, product.ID)) { admin = product.QAMANAGER; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |