doorlogmanager view: show human readable errorcodes; DoorManagerLogController.php authorization fix

This commit is contained in:
Schneider Roland
2023-03-01 17:45:39 +01:00
parent ad7042c300
commit 8f63efa946
3 changed files with 81 additions and 34 deletions

View File

@@ -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();