add event module

This commit is contained in:
Roland Schneider
2019-01-16 17:34:58 +01:00
parent 8decd1bc79
commit 8967445a28
18 changed files with 1151 additions and 2 deletions

View File

@@ -0,0 +1,42 @@
<?php
/**
* Created by IntelliJ IDEA.
* User: rocho
* Date: 2019.01.15.
* Time: 8:29
*/
namespace common\modules\event\models;
use common\modules\event\EventModule;
/**
* Class EventPermissions
* @package common\modules\event\models
*
* @property boolean $allowCreate
* @property boolean $allowDelete
* @property boolean $allowEdit
*/
class EventPermissions
{
public $allowCreate = false;
public $allowDelete = false;
public $allowEdit = false;
public $allowIndexCreatedAt = false;
public function __construct()
{
$moduleMode = EventModule::getInstance()->mode;
if ( $moduleMode == 'admin'){
$this->allowCreate = true;
$this->allowDelete = true;
$this->allowEdit = true;
$this->allowIndexCreatedAt = true;
}
}
}