registration fix fixed
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index b45cdb395b3f666c450db16d7eed4e63eb7b475c..d0a38e77f6c8ff1d7e5c5d4d101768244c473574 100644 (file)
@@ -76,7 +76,7 @@ public static function addNode($params) {
 
         $parent_permissions=permissions::checkPerms($parent_id);
 
-        if ((!$parent_permissions['w']) || ($params['flag']=='registration' )) {
+        if ((!$parent_permissions['w']) && ($params['flag']!='registration' )) {
                 $error=$error_messages['WRITE_PERMISSION_ERROR'];
                 logger::log('add','error','WRITE_PERMISSION_ERROR');
                 return false;
This page took 0.099249 seconds and 4 git commands to generate.