1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
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;
13
14 class ProfileController extends \Icybee\BlockController
15 {
16 protected function control_permission($permission)
17 {
18 global $core;
19
20 $user = $core->user;
21
22 if ($user->is_guest)
23 {
24 return false;
25 }
26
27 return $user->has_permission('modify own profile');
28 }
29 }