Skip to content

Commit 0cba4ef

Browse files
author
Till Brehm
committed
Removed debug messages.
1 parent 15687e2 commit 0cba4ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/lib/classes/system.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,16 +1835,16 @@ public function is_allowed_user($username, $check_id = true, $restrict_names = f
18351835

18361836
public function is_allowed_group($groupname, $check_id = true, $restrict_names = false) {
18371837
global $app;
1838-
echo 1;
1838+
18391839
$name_blacklist = array('root','ispconfig','vmail','getmail');
18401840
if(in_array($groupname,$name_blacklist)) return false;
1841-
echo 2;
1841+
18421842
if(preg_match('/^[a-zA-Z0-9\.\-]{1,32}$/', $groupname) == false) return false;
1843-
echo 3;
1843+
18441844
if($check_id && intval($this->getgid($groupname)) < $this->min_gid) return false;
1845-
echo 4;
1845+
18461846
if($restrict_names == true && preg_match('/^client\d+$/', $groupname) == false) return false;
1847-
echo 5;
1847+
18481848
return true;
18491849
}
18501850

0 commit comments

Comments
 (0)