AbstractController::checkAdminAccess()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 */
6
7
namespace flipbox\saml\core\controllers;
8
9
class AbstractController extends \craft\web\Controller
10
{
11
12
    /************************************************
13
     * Access Control
14
     ************************************************/
15
16
    /**
17
     * @return bool
18
     * @throws \yii\web\ForbiddenHttpException
19
     */
20
    public function checkAdminAccess(): bool
21
    {
22
        $this->requireAdmin(false);
23
        return true;
24
    }
25
}
26