Index: admin/html.php
===================================================================
--- admin/html.php (revision 9809)
+++ admin/html.php (working copy)
@@ -1891,7 +1891,11 @@
}
}
else{
- $sQuery = "SELECT owner_id FROM ".db_table_name('surveys')." WHERE sid = {$surveyid} AND owner_id = ".$_SESSION['loginID'];
+ $sQuery = "SELECT owner_id FROM ".db_table_name('surveys')." WHERE sid = {$surveyid} ";
+ if ($_SESSION['USER_RIGHT_SUPERADMIN'] != 1)
+ {
+ $sQuery.=" AND owner_id = ".$_SESSION['loginID'];
+ }
$iOwnerID=$connect->GetOne($sQuery);
}