Ticket #1381: patch.txt

File patch.txt, 399 bytes (added by sci2tech, 5 months ago)

Admin/reseller can not delete user that does not have a database

Line 
1 --- client-functions.php        2008-06-30 18:09:01.000000000 +0300
2 +++ /var/www/ispcp/gui/include/client-functions.php     2008-07-03 14:44:23.000000000 +0300
3 @@ -804,6 +804,8 @@
4         $rs = exec_query($sql, $query, array($dmn_id, $db_id));
5  
6         if ($rs->RecordCount() == 0) {
7 +               if($_SESSION['user_type']==='admin' || $_SESSION['user_type']==='reseller')
8 +                       return;
9                 user_goto('manage_sql.php');
10         }
11