Completed
Push — brickrouge3 ( 23d6f2...241af5 )
by Olivier
08:26
created

UsersAdminController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A action_profile() 0 7 1
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