X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fbackend%2Fmysql%2Fpermissions.inc;h=da78555fd748431541df0230fd642d38a153bda8;hb=92ac14b2de96259830a9a35cfd4f2f1485006334;hp=ce17117e55bf5c3b584ca5a3658ab18218f518da;hpb=13826e4f1ca35cbce3d20be1131a1b7dbf68ac7b;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/backend/mysql/permissions.inc b/wwwroot/backend/mysql/permissions.inc index ce17117..da78555 100644 --- a/wwwroot/backend/mysql/permissions.inc +++ b/wwwroot/backend/mysql/permissions.inc @@ -17,7 +17,7 @@ public static function checkPerms($node) { $node_id=$node; } - if (!$node_vector) { + if (empty($node_vector)) { $set=$db->query("select node_vector from nodes where node_id='$node_id'"); $set->next(); $node_vector=$set->getString('node_vector'); @@ -79,7 +79,7 @@ public static function checkPerms($node) { } if ($perms['node_system_access'] != 'private' - && !$_SESSION['user_id'] + && (empty($_SESSION['user_id'])) && $perms['node_external_access'] == 'yes') { $perms['r'] = 1; $perms['w'] = 0;