UsersAdminController::action_profile()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Icybee package.
5
 *
6
 * (c) Olivier Laviale <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Icybee\Modules\Users\Routing;
13
14
use Icybee\Modules\Users\User;
15
use Icybee\Routing\AdminController;
16
17
/**
18
 * @property User $user
19
 */
20
class UsersAdminController extends AdminController
21
{
22
	protected function action_profile()
23
	{
24
		$this->assert_has_permission('modify own profile');
25
26
		$this->view->content = $this->module->getBlock('edit', $this->user->uid);
27
		$this->view['block_name'] = 'edit';
28
	}
29
}
30