{"action":"created","issue":{"url":"https://api.github.com/repos/kaize/ya_acl/issues/2","labels_url":"https://api.github.com/repos/kaize/ya_acl/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/kaize/ya_acl/issues/2/comments","events_url":"https://api.github.com/repos/kaize/ya_acl/issues/2/events","html_url":"https://github.com/kaize/ya_acl/pull/2","id":7322035,"number":2,"title":"Создание ресурсов без глобальной роли","user":{"login":"vad4msiu","id":576091,"avatar_url":"https://avatars.githubusercontent.com/u/576091?v=3","gravatar_id":"","url":"https://api.github.com/users/vad4msiu","html_url":"https://github.com/vad4msiu","followers_url":"https://api.github.com/users/vad4msiu/followers","following_url":"https://api.github.com/users/vad4msiu/following{/other_user}","gists_url":"https://api.github.com/users/vad4msiu/gists{/gist_id}","starred_url":"https://api.github.com/users/vad4msiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vad4msiu/subscriptions","organizations_url":"https://api.github.com/users/vad4msiu/orgs","repos_url":"https://api.github.com/users/vad4msiu/repos","events_url":"https://api.github.com/users/vad4msiu/events{/privacy}","received_events_url":"https://api.github.com/users/vad4msiu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2012-10-03T13:48:10Z","updated_at":"2016-01-21T18:46:37Z","closed_at":"2016-01-21T18:46:37Z","pull_request":{"url":"https://api.github.com/repos/kaize/ya_acl/pulls/2","html_url":"https://github.com/kaize/ya_acl/pull/2","diff_url":"https://github.com/kaize/ya_acl/pull/2.diff","patch_url":"https://github.com/kaize/ya_acl/pull/2.patch"},"body":"Хочется иметь возможность сделать ресурсы которые будут не доступны глобальной роли. К примеру:\r\n``` ruby\r\nYaAcl::Builder.build do\r\n  roles do\r\n    role :admin,    :name => 'Администратор'\r\n  end\r\n\r\n  resource 'Devise::SessionsController', [:guest] do\r\n    privilege :new\r\n    privilege :create\r\n  end\r\nend\r\n```\r\n\r\nПотому как если у тебя уже есть роль admin значит ты залогинен и создать сессию еще раз тебя не положено.\r\n"},"comment":{"url":"https://api.github.com/repos/kaize/ya_acl/issues/comments/173670957","html_url":"https://github.com/kaize/ya_acl/pull/2#issuecomment-173670957","issue_url":"https://api.github.com/repos/kaize/ya_acl/issues/2","id":173670957,"user":{"login":"numbata","id":82400,"avatar_url":"https://avatars.githubusercontent.com/u/82400?v=3","gravatar_id":"","url":"https://api.github.com/users/numbata","html_url":"https://github.com/numbata","followers_url":"https://api.github.com/users/numbata/followers","following_url":"https://api.github.com/users/numbata/following{/other_user}","gists_url":"https://api.github.com/users/numbata/gists{/gist_id}","starred_url":"https://api.github.com/users/numbata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numbata/subscriptions","organizations_url":"https://api.github.com/users/numbata/orgs","repos_url":"https://api.github.com/users/numbata/repos","events_url":"https://api.github.com/users/numbata/events{/privacy}","received_events_url":"https://api.github.com/users/numbata/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T18:46:37Z","updated_at":"2016-01-21T18:46:37Z","body":"отребейзился от мастера и разрешил конфликты в #6"}}