From: Daniel Hromada Date: Wed, 16 Mar 2011 21:27:27 +0000 (+0100) Subject: stupid fix to stupid bug X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=da341bd09bfdbce1ebc3cd31259980f4a99d9314;p=mirrors%2FKyberia-bloodline.git stupid fix to stupid bug --- diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index 71c3936..d65fc94 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -75,11 +75,10 @@ function addNode($params) { } $parent_permissions=permissions::checkPerms($parent_id); - print_r($parent_permissions); + if (!$parent_permissions['w']) { $error=$error_messages['WRITE_PERMISSION_ERROR']; logger::log('add','error','WRITE_PERMISSION_ERROR'); - die("trralalala1"); return false; }