Enforce admin privileges

This commit is contained in:
franzz committed 2021-06-21 20:04:16 +02:00
1 parent 30a9dbc85c
commit 991edfe747
13 files changed
+215 -117

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ class Feed extends PhpObject {
$oNow = new DateTime('now');
$iSecDiff = $oNow->getTimestamp() - $oLastUpdate->getTimestamp();
if($iSecDiff > self::FEED_MAX_REFRESH) $bNewMsg = $this->updateFeed();
if($iSecDiff > self::FEED_MAX_REFRESH && !Settings::DEBUG) $bNewMsg = $this->updateFeed();
}
return $bNewMsg;