| | |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once('tools.inc.php'); |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | $app->auth->add_group_to_user($_SESSION['s']['user']['userid'],$groupid); |
| | | $app->db->query("UPDATE client SET parent_client_id = ".intval($_SESSION['s']['user']['client_id'])." WHERE client_id = ".$this->id); |
| | | } |
| | | |
| | | |
| | | |
| | | /* If there is a client-template, process it */ |
| | | applyClientTemplates($this->id); |
| | | } |
| | | |
| | | |
| | |
| | | $sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id"; |
| | | $app->db->query($sql); |
| | | } |
| | | /* |
| | | * If there is a client-template, process it */ |
| | | applyClientTemplates($this->id); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |