From: Daniel Hromada Date: Tue, 15 Mar 2011 22:23:52 +0000 (+0100) Subject: backend.inc merge? X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=de81c0b4d6eedeae3503478f090a4a7908d761c1;p=mirrors%2FKyberia-bloodline.git backend.inc merge? --- diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index f8cd6a3..ccefe80 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -49,7 +49,7 @@ function putNode($what,$where,$checkpermissions=true) { $nodeshell_vector = $nodeshell['node_vector']; if ($checkpermissions) { - $nodeshell_permissions = permissions::checkPermissions($nodeshell); + $nodeshell_permissions = permissions::checkPerms($nodeshell); if (!$nodeshell_permissions['w']) { $error = $error_messages['WRITE_PERMISSION_ERROR']; return false; @@ -72,7 +72,7 @@ function addNode($params) { $parent_id=$node['node_id']; } - $parent_permissions=permissions::checkPermissions($parent_id); + $parent_permissions=permissions::checkPerms($parent_id); if (!$parent_permissions['w']) { $error=$error_messages['WRITE_PERMISSION_ERROR']; logger::log('add','error','WRITE_PERMISSION_ERROR');