doorlogmanager view: show human readable errorcodes; DoorManagerLogController.php authorization fix
This commit is contained in:
@@ -30,6 +30,25 @@ use frontend\models\LogForm;
|
||||
*/
|
||||
class DoorManagerLogController extends Controller {
|
||||
|
||||
public function behaviors()
|
||||
{
|
||||
return [
|
||||
'access' => [
|
||||
'class' => \yii\filters\AccessControl::className(),
|
||||
'only' => ['index'],
|
||||
'rules' => [
|
||||
// allow authenticated users
|
||||
[
|
||||
'allow' => true,
|
||||
'roles' => ['@'],
|
||||
],
|
||||
// everything else is denied
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
public function actionIndex()
|
||||
{
|
||||
$searchModel = new DoorManagerLogSearch();
|
||||
|
||||
Reference in New Issue
Block a user