src/Chamilo/PageBundle/Entity/User.php 1 location
|
@@ 2099-2110 (lines=12) @@
|
| 2096 |
|
return in_array(strtoupper($role), $this->getRoles(), true); |
| 2097 |
|
} |
| 2098 |
|
|
| 2099 |
|
public function isAccountNonExpired() |
| 2100 |
|
{ |
| 2101 |
|
if (true === $this->expired) { |
| 2102 |
|
return false; |
| 2103 |
|
} |
| 2104 |
|
|
| 2105 |
|
if (null !== $this->expiresAt && $this->expiresAt->getTimestamp() < time()) { |
| 2106 |
|
return false; |
| 2107 |
|
} |
| 2108 |
|
|
| 2109 |
|
return true; |
| 2110 |
|
} |
| 2111 |
|
|
| 2112 |
|
public function isAccountNonLocked() |
| 2113 |
|
{ |
src/Chamilo/UserBundle/Entity/User.php 1 location
|
@@ 2173-2184 (lines=12) @@
|
| 2170 |
|
return in_array(strtoupper($role), $this->getRoles(), true); |
| 2171 |
|
} |
| 2172 |
|
|
| 2173 |
|
public function isAccountNonExpired() |
| 2174 |
|
{ |
| 2175 |
|
if (true === $this->expired) { |
| 2176 |
|
return false; |
| 2177 |
|
} |
| 2178 |
|
|
| 2179 |
|
if (null !== $this->expiresAt && $this->expiresAt->getTimestamp() < time()) { |
| 2180 |
|
return false; |
| 2181 |
|
} |
| 2182 |
|
|
| 2183 |
|
return true; |
| 2184 |
|
} |
| 2185 |
|
|
| 2186 |
|
public function isAccountNonLocked() |
| 2187 |
|
{ |