{"action":"reopened","issue":{"url":"https://api.github.com/repos/AlexKhymenko/ngx-permissions/issues/33","repository_url":"https://api.github.com/repos/AlexKhymenko/ngx-permissions","labels_url":"https://api.github.com/repos/AlexKhymenko/ngx-permissions/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/AlexKhymenko/ngx-permissions/issues/33/comments","events_url":"https://api.github.com/repos/AlexKhymenko/ngx-permissions/issues/33/events","html_url":"https://github.com/AlexKhymenko/ngx-permissions/issues/33","id":303921579,"number":33,"title":"can I use 'and' with ngxPermissionsOnly","user":{"login":"vetik32","id":2412005,"avatar_url":"https://avatars2.githubusercontent.com/u/2412005?v=4","gravatar_id":"","url":"https://api.github.com/users/vetik32","html_url":"https://github.com/vetik32","followers_url":"https://api.github.com/users/vetik32/followers","following_url":"https://api.github.com/users/vetik32/following{/other_user}","gists_url":"https://api.github.com/users/vetik32/gists{/gist_id}","starred_url":"https://api.github.com/users/vetik32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetik32/subscriptions","organizations_url":"https://api.github.com/users/vetik32/orgs","repos_url":"https://api.github.com/users/vetik32/repos","events_url":"https://api.github.com/users/vetik32/events{/privacy}","received_events_url":"https://api.github.com/users/vetik32/received_events","type":"User","site_admin":false},"labels":[{"id":670046076,"url":"https://api.github.com/repos/AlexKhymenko/ngx-permissions/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"AlexKhymenko","id":6598397,"avatar_url":"https://avatars3.githubusercontent.com/u/6598397?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexKhymenko","html_url":"https://github.com/AlexKhymenko","followers_url":"https://api.github.com/users/AlexKhymenko/followers","following_url":"https://api.github.com/users/AlexKhymenko/following{/other_user}","gists_url":"https://api.github.com/users/AlexKhymenko/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexKhymenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexKhymenko/subscriptions","organizations_url":"https://api.github.com/users/AlexKhymenko/orgs","repos_url":"https://api.github.com/users/AlexKhymenko/repos","events_url":"https://api.github.com/users/AlexKhymenko/events{/privacy}","received_events_url":"https://api.github.com/users/AlexKhymenko/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexKhymenko","id":6598397,"avatar_url":"https://avatars3.githubusercontent.com/u/6598397?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexKhymenko","html_url":"https://github.com/AlexKhymenko","followers_url":"https://api.github.com/users/AlexKhymenko/followers","following_url":"https://api.github.com/users/AlexKhymenko/following{/other_user}","gists_url":"https://api.github.com/users/AlexKhymenko/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexKhymenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexKhymenko/subscriptions","organizations_url":"https://api.github.com/users/AlexKhymenko/orgs","repos_url":"https://api.github.com/users/AlexKhymenko/repos","events_url":"https://api.github.com/users/AlexKhymenko/events{/privacy}","received_events_url":"https://api.github.com/users/AlexKhymenko/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-03-09T17:37:49Z","updated_at":"2018-03-12T11:26:02Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!-- Check one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[ ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[x] Feature request\r\n[x] Documentation issue or request\r\n</code></pre>\r\n\r\n## Current behavior\r\n<!-- Describe how the issue manifests. -->\r\nit looks to me that \r\n\r\n```html\r\n<div *ngxPermissionsOnly=\"['ADMIN', 'GUEST']\">\r\n    <div>You can see this text congrats</div>\r\n</div>\r\n```\r\nworks like `or` and will show if ADMIN or if GUEST. \r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\n\r\n\r\nI'm looking for `and` use case, is it possible with current version?\r\n\r\nI imagine it might be like \r\n```html\r\n<div *ngxPermissionsAnd=\"['canDoAction1', 'canDoAction2']\">\r\n    Congrats you can do both actions:\r\n    <div>item 1 <button>action1</button></div>\r\n    <div>item 2 <button>action2</button></div>\r\n</div>\r\n```\r\nso the area will appear only if user has permission to do both actions\r\n\r\n"}}
{"actor":{"display_login":"vetik32"}}