Option to control ability to add and edit dirs in Usermin
authorJamie Cameron <jcameron@webmin.com>
Sat, 12 Jan 2008 22:25:46 +0000 (22:25 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 12 Jan 2008 22:25:46 +0000 (22:25 +0000)
htaccess-htpasswd/htaccess-lib.pl

index a296144..0af9f69 100644 (file)
@@ -23,7 +23,7 @@ if ($module_info{'usermin'}) {
        $apachemod = "htaccess";
        $can_htpasswd = $config{'can_htpasswd'};
        $can_htgroups = $config{'can_htgroups'};
-       $can_create = 1;
+       $can_create = !$config{'nocreate'};
        }
 else {
        # Allowed directories come from ACL