Don't allow access if user has already taken part

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2019-08-01 17:02:45 +02:00
commit c03647a1c4
5 changed files with 97 additions and 0 deletions

View file

@ -45,6 +45,8 @@ use OCP\AppFramework\Db\Entity;
* @method void setHash(string $value)
* @method integer getIsAnonymous()
* @method void setIsAnonymous(integer $value)
* @method integer getUnique()
* @method void setUnique(boolean $value)
*/
class Event extends Entity {
protected $title;
@ -57,6 +59,7 @@ class Event extends Entity {
protected $isAnonymous;
protected $fullAnonymous;
protected $allowMaybe;
protected $unique;
/**
* Event constructor.
@ -91,6 +94,7 @@ class Event extends Entity {
'expired' => $expired,
'expirationDate' => $this->getExpire(),
'isAnonymous' => $this->getIsAnonymous(),
'unique' => $this->getUnique()
];
}
}