-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathmanage.php
More file actions
38 lines (34 loc) · 811 Bytes
/
manage.php
File metadata and controls
38 lines (34 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
*
* This file is part of the phpBB Customisation Database package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\titania\controller\manage;
class manage extends base
{
/**
* Redirect user to first management page that he has access to.
*
* @return Returns \Symfony\Component\HttpFoundation\Response if user does not have
* permission to access any management page. Otherwise redirects.
*/
public function base()
{
$pages = $this->get_navigation_options();
foreach ($pages as $page)
{
if ($page['auth'])
{
redirect($page['url'], false, true);
}
}
return $this->helper->needs_auth();
}
}