Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/device_admins.php | ||
---|---|---|
*/
|
||
class Device_admins_Controller extends Controller
|
||
{
|
||
/**
|
||
* Constructor, only test if networks is enabled
|
||
*/
|
||
public function __construct()
|
||
{
|
||
parent::__construct();
|
||
|
||
// access control
|
||
if (!Settings::get('networks_enabled'))
|
||
Controller::error (ACCESS);
|
||
}
|
||
|
||
/**
|
||
* Edits devices of which is user admin
|
||
*
|
||
... | ... | |
{
|
||
$device_admin_model->transaction_rollback();
|
||
Log::add_exception($e);
|
||
status::error('Error - cannot update device admin.');
|
||
status::error('Error - cannot update device admin.', $e);
|
||
}
|
||
|
||
url::redirect('devices/show/'.$device->id);
|
||
... | ... | |
{
|
||
$device_admin_model->transaction_rollback();
|
||
Log::add_exception($e);
|
||
status::error('Error - cannot update device admin.');
|
||
status::error('Error - cannot update device admin.', $e);
|
||
}
|
||
url::redirect(url_lang::base().'users/show/'.$user->id);
|
||
}
|
Také k dispozici: Unified diff
Release 1.1.0