From: niekt0 Date: Mon, 16 Jan 2012 18:02:35 +0000 (+0100) Subject: registration permission fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=393fb40460bf99689b67cfe09bbf629287382649;p=mirrors%2FKyberia-bloodline.git registration permission fix --- 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;