Zámek skladu se nyní nevztahuje na jeho autora...
[mirrors/SokoMan.git] / index.php
index 36c59f153fab4ef6b3c69b13768817ba5109417b..f03be33f7158c8d33a1009488de0c27e99ae9e28 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -1052,7 +1052,8 @@ class Sklad_UI {
        }
 
        function check_locks() {
-               $result = $this->db->safe_query_fetch("SELECT * FROM `lock`;");
+               $user = $this->db->quote($this->db->auth->get_user_id());
+               $result = $this->db->safe_query_fetch("SELECT * FROM `lock` WHERE `lock_author` != $user;");
                if(!empty($result)) {
                        echo T('There are locks:').' '.$this->html->render_item_table($result, 'lock');
                        $this->post_redirect_get('', 'There are locks!', true);
This page took 0.141047 seconds and 4 git commands to generate.