Fixed hardcoded user_id for full access
[squasher.git] / webroot / squasher.php
index f8dcd58d4352829a7c30076a62f4d7636e2b12fb..61b5645e0165df6108fe39b4c3b4f0e173f748de 100644 (file)
@@ -27,7 +27,7 @@ if (@$_POST['edited_user'] > 0 && @$_POST['formtype'] == 'folderrights')
 
 //set folder rights
 if (@$_GET['f']) {
-       $squashweb->give_rights(2);
+       $squashweb->give_rights(-1); // full access
 } else {
        $squashweb->give_rights($_SESSION['creds']['user_id']);
 }