diff --git a/account.inc.php b/account.inc.php
index f8fc2da..d51643d 100644
--- a/account.inc.php
+++ b/account.inc.php
@@ -196,7 +196,7 @@ function account_add_role($accounts_id, $roles_id, $conferences_id, $password =
return "invalidaccount";
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM roles WHERE id = $roles_id"), 0) != 1){
- return "invalidrole";
+ return "invalidrole($roles_id)";
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM conferences WHERE id = $conferences_id"), 0) != 1){
return "invalidconference";
@@ -227,17 +227,20 @@ function account_add_role($accounts_id, $roles_id, $conferences_id, $password =
// see if this role conflicts with existing ones
if(!account_add_role_allowed($accounts_id, $conferences_id, $roles_id)){
- return 'invalidrole';
+ return 'invalidrole(account_add_role_allowed)';
}
// get the type of the role (eg. "judge", "participant", etc.)
$role = mysql_result(mysql_query("SELECT type FROM roles WHERE id = $roles_id"), 0);
- // and see if it's a valid one for this conference
- if(!array_key_exists($role . '_registration_type', $config)){
- return 'invalidrole';
+ if($_SESSION['superuser']!='yes') {
+ // and see if it's a valid one for this conference
+ if(!array_key_exists($role . '_registration_type', $config)){
+ return 'invalidrole(_registration_type)';
+ }
}
+
// and let's see if we meet the conditions for the registration type
$error = "";
switch($config[$role . '_registration_type']){
diff --git a/admin/committee_committees.php b/admin/committee_committees.php
index 15cdbf8..af57628 100644
--- a/admin/committee_committees.php
+++ b/admin/committee_committees.php
@@ -35,6 +35,7 @@
'Administration' => 'admin/index.php' ),
"committee_management");
+ echo "Manage Committee Members
";
$_SESSION['last_page'] = 'committee_management';
diff --git a/admin/committees.php b/admin/committees.php
index 17bd7d4..e96e61a 100644
--- a/admin/committees.php
+++ b/admin/committees.php
@@ -48,7 +48,7 @@ if($_POST['accounts_id'])
function openeditor(id)
{
- window.open("user_editor_window.php?id="+id,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
+ window.open("user_editor_window.php?users_id="+id,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
return false;
}
@@ -190,6 +190,8 @@ if($_GET['unlinkmember'] && $_GET['unlinkcommittee']) {
echo happy(i18n("Committee member unlinked from committee"));
}
+
+ echo "Manage Committees
";
echo "