diff --git a/app/Traits/AreaSecurity.php b/app/Traits/AreaSecurity.php index 2a9128b..20ed820 100644 --- a/app/Traits/AreaSecurity.php +++ b/app/Traits/AreaSecurity.php @@ -13,7 +13,7 @@ trait AreaSecurity * @param int $sec * @return bool */ - public function can_access(int $sec): bool + public function can_access(?int $sec): bool { return $this->can_read($sec) || $this->can_write($sec); } @@ -24,7 +24,7 @@ trait AreaSecurity * @param int $sec * @return bool */ - public function can_read(int $sec): bool + public function can_read(?int $sec): bool { return $this->active && (($sec >= ($x=$this->getSecReadAttribute())) && $x); } @@ -35,7 +35,7 @@ trait AreaSecurity * @param int $sec * @return bool */ - public function can_write(int $sec): bool + public function can_write(?int $sec): bool { return $this->active && (($sec >= ($x=$this->getSecWriteAttribute())) && $x); }