From ec19a17db8589bb3df26bcbc56347b3f71bb44f3 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Mon, 16 Jan 2012 19:05:27 +0100 Subject: [PATCH] registration fix fixed --- wwwroot/backend/mysql/backend.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index b45cdb3..d0a38e7 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -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; -- 2.30.2