{"action":"created","comment":{"url":"https://api.github.com/repos/minetest/minetest_game/pulls/comments/36032108","id":36032108,"diff_hunk":"@@ -1364,11 +1364,12 @@ local function get_locked_chest_formspec(pos)\n end\n \n local function has_locked_chest_privilege(meta, player)\n-\tif player:get_player_name() ~= meta:get_string(\"owner\") then\n-\t\treturn false\n+\t\tif player:get_player_name() ~= meta:get_string(\"owner\") \n+\t\t\t\tand not (minetest.get_player_privs(player:get_player_name()).server) then\n+\t\t\treturn false\n+\t\tend\n+\t\treturn true","path":"mods/default/nodes.lua","position":10,"original_position":10,"commit_id":"d60465987f9adf20475be595229396d0d4fb51f0","original_commit_id":"d60465987f9adf20475be595229396d0d4fb51f0","user":{"login":"kilbith","id":7883281,"avatar_url":"https://avatars.githubusercontent.com/u/7883281?v=3","gravatar_id":"","url":"https://api.github.com/users/kilbith","html_url":"https://github.com/kilbith","followers_url":"https://api.github.com/users/kilbith/followers","following_url":"https://api.github.com/users/kilbith/following{/other_user}","gists_url":"https://api.github.com/users/kilbith/gists{/gist_id}","starred_url":"https://api.github.com/users/kilbith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilbith/subscriptions","organizations_url":"https://api.github.com/users/kilbith/orgs","repos_url":"https://api.github.com/users/kilbith/repos","events_url":"https://api.github.com/users/kilbith/events{/privacy}","received_events_url":"https://api.github.com/users/kilbith/received_events","type":"User","site_admin":false},"body":"Still style issues against the guidelines... Here's to follow : \r\n\r\n```\r\n\tlocal player = player:get_player_name()\r\n\tif player ~= meta:get_string(\"owner\") and not\r\n\t\t\t\t(minetest.get_player_privs(player).server) then\r\n\t\treturn false\r\n\tend\r\n\treturn true\r\n```","created_at":"2015-08-01T09:15:32Z","updated_at":"2015-08-01T09:15:32Z","html_url":"https://github.com/minetest/minetest_game/pull/602#discussion_r36032108","pull_request_url":"https://api.github.com/repos/minetest/minetest_game/pulls/602","_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/comments/36032108"},"html":{"href":"https://github.com/minetest/minetest_game/pull/602#discussion_r36032108"},"pull_request":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/602"}}},"pull_request":{"url":"https://api.github.com/repos/minetest/minetest_game/pulls/602","id":41388282,"html_url":"https://github.com/minetest/minetest_game/pull/602","diff_url":"https://github.com/minetest/minetest_game/pull/602.diff","patch_url":"https://github.com/minetest/minetest_game/pull/602.patch","issue_url":"https://api.github.com/repos/minetest/minetest_game/issues/602","number":602,"state":"open","locked":false,"title":"Allowed players with server priv to access any locked chest.","user":{"login":"red-001","id":12450071,"avatar_url":"https://avatars.githubusercontent.com/u/12450071?v=3","gravatar_id":"","url":"https://api.github.com/users/red-001","html_url":"https://github.com/red-001","followers_url":"https://api.github.com/users/red-001/followers","following_url":"https://api.github.com/users/red-001/following{/other_user}","gists_url":"https://api.github.com/users/red-001/gists{/gist_id}","starred_url":"https://api.github.com/users/red-001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red-001/subscriptions","organizations_url":"https://api.github.com/users/red-001/orgs","repos_url":"https://api.github.com/users/red-001/repos","events_url":"https://api.github.com/users/red-001/events{/privacy}","received_events_url":"https://api.github.com/users/red-001/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-31T22:50:06Z","updated_at":"2015-08-01T09:15:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eee05a9e2dbefc4e2a3ef51d52c814c240f096a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/minetest/minetest_game/pulls/602/commits","review_comments_url":"https://api.github.com/repos/minetest/minetest_game/pulls/602/comments","review_comment_url":"https://api.github.com/repos/minetest/minetest_game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minetest/minetest_game/issues/602/comments","statuses_url":"https://api.github.com/repos/minetest/minetest_game/statuses/d60465987f9adf20475be595229396d0d4fb51f0","head":{"label":"red-001:locked_chest-bug-fixes","ref":"locked_chest-bug-fixes","sha":"d60465987f9adf20475be595229396d0d4fb51f0","user":{"login":"red-001","id":12450071,"avatar_url":"https://avatars.githubusercontent.com/u/12450071?v=3","gravatar_id":"","url":"https://api.github.com/users/red-001","html_url":"https://github.com/red-001","followers_url":"https://api.github.com/users/red-001/followers","following_url":"https://api.github.com/users/red-001/following{/other_user}","gists_url":"https://api.github.com/users/red-001/gists{/gist_id}","starred_url":"https://api.github.com/users/red-001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red-001/subscriptions","organizations_url":"https://api.github.com/users/red-001/orgs","repos_url":"https://api.github.com/users/red-001/repos","events_url":"https://api.github.com/users/red-001/events{/privacy}","received_events_url":"https://api.github.com/users/red-001/received_events","type":"User","site_admin":false},"repo":{"id":36290254,"name":"minetest_game","full_name":"red-001/minetest_game","owner":{"login":"red-001","id":12450071,"avatar_url":"https://avatars.githubusercontent.com/u/12450071?v=3","gravatar_id":"","url":"https://api.github.com/users/red-001","html_url":"https://github.com/red-001","followers_url":"https://api.github.com/users/red-001/followers","following_url":"https://api.github.com/users/red-001/following{/other_user}","gists_url":"https://api.github.com/users/red-001/gists{/gist_id}","starred_url":"https://api.github.com/users/red-001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red-001/subscriptions","organizations_url":"https://api.github.com/users/red-001/orgs","repos_url":"https://api.github.com/users/red-001/repos","events_url":"https://api.github.com/users/red-001/events{/privacy}","received_events_url":"https://api.github.com/users/red-001/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/red-001/minetest_game","description":"The main game for the Minetest game engine [minetest_game] [https://github.com/minetest/minetest/]","fork":true,"url":"https://api.github.com/repos/red-001/minetest_game","forks_url":"https://api.github.com/repos/red-001/minetest_game/forks","keys_url":"https://api.github.com/repos/red-001/minetest_game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/red-001/minetest_game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/red-001/minetest_game/teams","hooks_url":"https://api.github.com/repos/red-001/minetest_game/hooks","issue_events_url":"https://api.github.com/repos/red-001/minetest_game/issues/events{/number}","events_url":"https://api.github.com/repos/red-001/minetest_game/events","assignees_url":"https://api.github.com/repos/red-001/minetest_game/assignees{/user}","branches_url":"https://api.github.com/repos/red-001/minetest_game/branches{/branch}","tags_url":"https://api.github.com/repos/red-001/minetest_game/tags","blobs_url":"https://api.github.com/repos/red-001/minetest_game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/red-001/minetest_game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/red-001/minetest_game/git/refs{/sha}","trees_url":"https://api.github.com/repos/red-001/minetest_game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/red-001/minetest_game/statuses/{sha}","languages_url":"https://api.github.com/repos/red-001/minetest_game/languages","stargazers_url":"https://api.github.com/repos/red-001/minetest_game/stargazers","contributors_url":"https://api.github.com/repos/red-001/minetest_game/contributors","subscribers_url":"https://api.github.com/repos/red-001/minetest_game/subscribers","subscription_url":"https://api.github.com/repos/red-001/minetest_game/subscription","commits_url":"https://api.github.com/repos/red-001/minetest_game/commits{/sha}","git_commits_url":"https://api.github.com/repos/red-001/minetest_game/git/commits{/sha}","comments_url":"https://api.github.com/repos/red-001/minetest_game/comments{/number}","issue_comment_url":"https://api.github.com/repos/red-001/minetest_game/issues/comments{/number}","contents_url":"https://api.github.com/repos/red-001/minetest_game/contents/{+path}","compare_url":"https://api.github.com/repos/red-001/minetest_game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/red-001/minetest_game/merges","archive_url":"https://api.github.com/repos/red-001/minetest_game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/red-001/minetest_game/downloads","issues_url":"https://api.github.com/repos/red-001/minetest_game/issues{/number}","pulls_url":"https://api.github.com/repos/red-001/minetest_game/pulls{/number}","milestones_url":"https://api.github.com/repos/red-001/minetest_game/milestones{/number}","notifications_url":"https://api.github.com/repos/red-001/minetest_game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/red-001/minetest_game/labels{/name}","releases_url":"https://api.github.com/repos/red-001/minetest_game/releases{/id}","created_at":"2015-05-26T11:00:45Z","updated_at":"2015-07-28T15:44:17Z","pushed_at":"2015-07-31T23:24:42Z","git_url":"git://github.com/red-001/minetest_game.git","ssh_url":"git@github.com:red-001/minetest_game.git","clone_url":"https://github.com/red-001/minetest_game.git","svn_url":"https://github.com/red-001/minetest_game","homepage":"http://minetest.net/","size":3260,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"minetest:master","ref":"master","sha":"84de5f0f40b6b16988b39ccf6e26f2403c00dfb7","user":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"repo":{"id":3834571,"name":"minetest_game","full_name":"minetest/minetest_game","owner":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minetest/minetest_game","description":"The main game for the Minetest game engine [minetest_game] [https://github.com/minetest/minetest/]","fork":false,"url":"https://api.github.com/repos/minetest/minetest_game","forks_url":"https://api.github.com/repos/minetest/minetest_game/forks","keys_url":"https://api.github.com/repos/minetest/minetest_game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minetest/minetest_game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minetest/minetest_game/teams","hooks_url":"https://api.github.com/repos/minetest/minetest_game/hooks","issue_events_url":"https://api.github.com/repos/minetest/minetest_game/issues/events{/number}","events_url":"https://api.github.com/repos/minetest/minetest_game/events","assignees_url":"https://api.github.com/repos/minetest/minetest_game/assignees{/user}","branches_url":"https://api.github.com/repos/minetest/minetest_game/branches{/branch}","tags_url":"https://api.github.com/repos/minetest/minetest_game/tags","blobs_url":"https://api.github.com/repos/minetest/minetest_game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minetest/minetest_game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minetest/minetest_game/git/refs{/sha}","trees_url":"https://api.github.com/repos/minetest/minetest_game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minetest/minetest_game/statuses/{sha}","languages_url":"https://api.github.com/repos/minetest/minetest_game/languages","stargazers_url":"https://api.github.com/repos/minetest/minetest_game/stargazers","contributors_url":"https://api.github.com/repos/minetest/minetest_game/contributors","subscribers_url":"https://api.github.com/repos/minetest/minetest_game/subscribers","subscription_url":"https://api.github.com/repos/minetest/minetest_game/subscription","commits_url":"https://api.github.com/repos/minetest/minetest_game/commits{/sha}","git_commits_url":"https://api.github.com/repos/minetest/minetest_game/git/commits{/sha}","comments_url":"https://api.github.com/repos/minetest/minetest_game/comments{/number}","issue_comment_url":"https://api.github.com/repos/minetest/minetest_game/issues/comments{/number}","contents_url":"https://api.github.com/repos/minetest/minetest_game/contents/{+path}","compare_url":"https://api.github.com/repos/minetest/minetest_game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minetest/minetest_game/merges","archive_url":"https://api.github.com/repos/minetest/minetest_game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minetest/minetest_game/downloads","issues_url":"https://api.github.com/repos/minetest/minetest_game/issues{/number}","pulls_url":"https://api.github.com/repos/minetest/minetest_game/pulls{/number}","milestones_url":"https://api.github.com/repos/minetest/minetest_game/milestones{/number}","notifications_url":"https://api.github.com/repos/minetest/minetest_game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minetest/minetest_game/labels{/name}","releases_url":"https://api.github.com/repos/minetest/minetest_game/releases{/id}","created_at":"2012-03-26T16:03:29Z","updated_at":"2015-07-31T06:48:12Z","pushed_at":"2015-07-31T23:24:42Z","git_url":"git://github.com/minetest/minetest_game.git","ssh_url":"git@github.com:minetest/minetest_game.git","clone_url":"https://github.com/minetest/minetest_game.git","svn_url":"https://github.com/minetest/minetest_game","homepage":"http://minetest.net/","size":14078,"stargazers_count":315,"watchers_count":315,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":76,"forks":201,"open_issues":76,"watchers":315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/602"},"html":{"href":"https://github.com/minetest/minetest_game/pull/602"},"issue":{"href":"https://api.github.com/repos/minetest/minetest_game/issues/602"},"comments":{"href":"https://api.github.com/repos/minetest/minetest_game/issues/602/comments"},"review_comments":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/602/comments"},"review_comment":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/602/commits"},"statuses":{"href":"https://api.github.com/repos/minetest/minetest_game/statuses/d60465987f9adf20475be595229396d0d4fb51f0"}}}}