diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-22 17:59:41 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-07 19:18:30 +0300 |
commit | 1b13f80cc119eb386afe72866e6f4f8f9537c471 (patch) | |
tree | fbaa50ec2d584fccc828e9359323d0a99c7f398d /lib/Room.php | |
parent | 390ae657a18523bb0b39f6531fa27de9bb075410 (diff) |
Allow to remove all permissions without falling back to the next level
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Room.php')
-rw-r--r-- | lib/Room.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Room.php b/lib/Room.php index c6a3f1589..311489da1 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -185,6 +185,10 @@ class Room { /** @var int */ private $activeGuests; /** @var int */ + private $defaultPermissions; + /** @var int */ + private $callPermissions; + /** @var int */ private $callFlag; /** @var \DateTime|null */ private $activeSince; @@ -222,6 +226,8 @@ class Room { string $password, string $serverUrl, int $activeGuests, + int $defaultPermissions, + int $callPermissions, int $callFlag, ?\DateTime $activeSince, ?\DateTime $lastActivity, @@ -248,6 +254,8 @@ class Room { $this->password = $password; $this->serverUrl = $serverUrl; $this->activeGuests = $activeGuests; + $this->defaultPermissions = $defaultPermissions; + $this->callPermissions = $callPermissions; $this->callFlag = $callFlag; $this->activeSince = $activeSince; $this->lastActivity = $lastActivity; @@ -342,6 +350,14 @@ class Room { return $this->activeGuests; } + public function getDefaultPermissions(): int { + return $this->defaultPermissions; + } + + public function getCallPermissions(): int { + return $this->callPermissions; + } + public function getCallFlag(): int { return $this->callFlag; } |