From 393fb40460bf99689b67cfe09bbf629287382649 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Mon, 16 Jan 2012 19:02:35 +0100 Subject: [PATCH] registration permission fix --- 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 554ba63..b45cdb3 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']) { + 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