{"action":"closed","issue":{"url":"https://api.github.com/repos/minetest/minetest_game/issues/953","repository_url":"https://api.github.com/repos/minetest/minetest_game","labels_url":"https://api.github.com/repos/minetest/minetest_game/issues/953/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest_game/issues/953/comments","events_url":"https://api.github.com/repos/minetest/minetest_game/issues/953/events","html_url":"https://github.com/minetest/minetest_game/issues/953","id":141935862,"number":953,"title":"Beds: Don't allow bed usage in protected areas","user":{"login":"sofar","id":1880041,"avatar_url":"https://avatars.githubusercontent.com/u/1880041?v=3","gravatar_id":"","url":"https://api.github.com/users/sofar","html_url":"https://github.com/sofar","followers_url":"https://api.github.com/users/sofar/followers","following_url":"https://api.github.com/users/sofar/following{/other_user}","gists_url":"https://api.github.com/users/sofar/gists{/gist_id}","starred_url":"https://api.github.com/users/sofar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofar/subscriptions","organizations_url":"https://api.github.com/users/sofar/orgs","repos_url":"https://api.github.com/users/sofar/repos","events_url":"https://api.github.com/users/sofar/events{/privacy}","received_events_url":"https://api.github.com/users/sofar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-18T17:54:41Z","updated_at":"2016-03-21T06:59:36Z","closed_at":"2016-03-21T06:59:36Z","body":"We should check for permissions before allowing a user to sleep in a bed with ```minetest.is_protected()``` and ```protection_bypass```. right now anyone can sleep in any bed that's in a protected area."}}