Completed
Push — master ( a3d311...211d79 )
by Cheren
02:09
created

BaseAuthorize::authorize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
/**
3
 * CakeCMS Community
4
 *
5
 * This file is part of the of the simple cms based on CakePHP 3.
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @package     Community
10
 * @license     MIT
11
 * @copyright   MIT License http://www.opensource.org/licenses/mit-license.php
12
 * @link        https://github.com/CakeCMS/Community".
13
 * @author      Sergey Kalistratov <[email protected]>
14
 */
15
16
namespace Community\Auth;
17
18
use Cake\Http\ServerRequest;
19
use Cake\Auth\BaseAuthorize as CakeBaseAuthorize;
20
21
/**
22
 * Class BaseAuthorize
23
 *
24
 * @package Community\Auth
25
 */
26
class BaseAuthorize extends CakeBaseAuthorize
27
{
28
29
    /**
30
     * Checks user authorization.
31
     *
32
     * @param   array|\ArrayAccess $user Active user data
33
     * @param   ServerRequest $request Request instance.
34
     * @return  bool
35
     */
36
    public function authorize($user, ServerRequest $request)
37
    {
38
        return true;
39
    }
40
}
41