registration fix fixed
authorniekt0 <niekt0@kyberia.cz>
Mon, 16 Jan 2012 18:05:27 +0000 (19:05 +0100)
committerniekt0 <niekt0@kyberia.cz>
Mon, 16 Jan 2012 18:05:27 +0000 (19:05 +0100)
wwwroot/backend/mysql/backend.inc

index b45cdb3..d0a38e7 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.100802 seconds and 4 git commands to generate.