Bug #4 - Profile Shows Incorrect User Level - Return to bug list
Reporter: ****** Created: 09-29-2003
Project: Priority:
Component: Severity:
Version: OS:
To be Closed in Version Database:
Closed in Version Reported on Site
Summary: Status:
URL: Resolution:
Assigned To: Add CC:
Dependencies:
Add Dependency:
Remove Dependency:

Remove selected CCs:
Additional Comments:



You must be logged in to modify this bug
Attachments: Create Attachment
Name Size Type Created  
No attachments


Comments:
Posted By: ******
Date: 9:26 PM On 09-29-2003
Profile.php always shows Administrator for all users, regardless of their user level. To correct this, make the following changes in profile.php:
Find:
________________________
if ($groupid = 1) {
$usergroup = 'Administrator';
} elseif ($groupid = 2) {
$usergroup = 'Enhanced Level';
} elseif ($groupid = 3) {
$usergroup = 'Standard Level';
}
________________________
Replace with
________________________

if ($groupid == 1)
{
$usergroup = 'Administrator';
}
elseif ($groupid == 2)
{
$usergroup = 'Enhanced Level';
}
elseif ($groupid == 3)
{
$usergroup = 'Standard Level';
}
________________________