Skip to content

Commit 64f061b

Browse files
committed
Skip requireRoot on Windows (for testing purposes)
1 parent f997602 commit 64f061b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pihole-updatelists.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ function getDefinedOptions()
250250
*/
251251
function requireRoot()
252252
{
253+
if (stripos(PHP_OS, 'WIN') === 0) {
254+
return; // don't need to check for root privileges on Windows
255+
}
256+
253257
global $isRoot;
254258

255259
if (!isset($isRoot) || $isRoot === null) {

0 commit comments

Comments
 (0)