{"action":"created","comment":{"url":"https://api.github.com/repos/fago/rules/pulls/comments/46571001","id":46571001,"diff_hunk":"@@ -38,12 +39,22 @@\n class UserHasRole extends RulesConditionBase {\n \n   /**\n-   * {@inheritdoc}\n+   * Evaluate if user has role(s).\n+   *\n+   * @param \\Drupal\\user\\UserInterface $account\n+   *   The account to check.\n+   * @param \\Drupal\\user\\RoleInterface[] $roles\n+   *   Array of user roles.\n+   * @param string $operation\n+   *   Either \"AND\": user has all of roles.\n+   *   Or \"OR\": user has at least one of all roles.\n+   *   Defaults to \"AND\".\n+   *\n+   * @return bool\n+   *   TRUE if user has role(s).\n+   *   Defaults to FALSE.","path":"src/Plugin/Condition/UserHasRole.php","position":26,"original_position":26,"commit_id":"065b8e5446acbe6833c7326fcf2d5aef3f13aa3b","original_commit_id":"065b8e5446acbe6833c7326fcf2d5aef3f13aa3b","user":{"login":"klausi","id":213229,"avatar_url":"https://avatars.githubusercontent.com/u/213229?v=3","gravatar_id":"","url":"https://api.github.com/users/klausi","html_url":"https://github.com/klausi","followers_url":"https://api.github.com/users/klausi/followers","following_url":"https://api.github.com/users/klausi/following{/other_user}","gists_url":"https://api.github.com/users/klausi/gists{/gist_id}","starred_url":"https://api.github.com/users/klausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausi/subscriptions","organizations_url":"https://api.github.com/users/klausi/orgs","repos_url":"https://api.github.com/users/klausi/repos","events_url":"https://api.github.com/users/klausi/events{/privacy}","received_events_url":"https://api.github.com/users/klausi/received_events","type":"User","site_admin":false},"body":"I think there is no \"default\" for return values, so this should be removed.","created_at":"2015-12-03T16:07:25Z","updated_at":"2015-12-03T16:07:25Z","html_url":"https://github.com/fago/rules/pull/308#discussion_r46571001","pull_request_url":"https://api.github.com/repos/fago/rules/pulls/308","_links":{"self":{"href":"https://api.github.com/repos/fago/rules/pulls/comments/46571001"},"html":{"href":"https://github.com/fago/rules/pull/308#discussion_r46571001"},"pull_request":{"href":"https://api.github.com/repos/fago/rules/pulls/308"}}},"pull_request":{"url":"https://api.github.com/repos/fago/rules/pulls/308","id":52063105,"html_url":"https://github.com/fago/rules/pull/308","diff_url":"https://github.com/fago/rules/pull/308.diff","patch_url":"https://github.com/fago/rules/pull/308.patch","issue_url":"https://api.github.com/repos/fago/rules/issues/308","number":308,"state":"open","locked":false,"title":"2281119 Port user_has_role","user":{"login":"ndf","id":2086206,"avatar_url":"https://avatars.githubusercontent.com/u/2086206?v=3","gravatar_id":"","url":"https://api.github.com/users/ndf","html_url":"https://github.com/ndf","followers_url":"https://api.github.com/users/ndf/followers","following_url":"https://api.github.com/users/ndf/following{/other_user}","gists_url":"https://api.github.com/users/ndf/gists{/gist_id}","starred_url":"https://api.github.com/users/ndf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndf/subscriptions","organizations_url":"https://api.github.com/users/ndf/orgs","repos_url":"https://api.github.com/users/ndf/repos","events_url":"https://api.github.com/users/ndf/events{/privacy}","received_events_url":"https://api.github.com/users/ndf/received_events","type":"User","site_admin":false},"body":"Renamed ->evaluate() to ->doEvaluate()","created_at":"2015-11-29T14:45:33Z","updated_at":"2015-12-03T16:07:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e0d9818452c1feca57cc044fd99f19dce765d43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fago/rules/pulls/308/commits","review_comments_url":"https://api.github.com/repos/fago/rules/pulls/308/comments","review_comment_url":"https://api.github.com/repos/fago/rules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fago/rules/issues/308/comments","statuses_url":"https://api.github.com/repos/fago/rules/statuses/065b8e5446acbe6833c7326fcf2d5aef3f13aa3b","head":{"label":"ndf:2281119-Port-user_has_role","ref":"2281119-Port-user_has_role","sha":"065b8e5446acbe6833c7326fcf2d5aef3f13aa3b","user":{"login":"ndf","id":2086206,"avatar_url":"https://avatars.githubusercontent.com/u/2086206?v=3","gravatar_id":"","url":"https://api.github.com/users/ndf","html_url":"https://github.com/ndf","followers_url":"https://api.github.com/users/ndf/followers","following_url":"https://api.github.com/users/ndf/following{/other_user}","gists_url":"https://api.github.com/users/ndf/gists{/gist_id}","starred_url":"https://api.github.com/users/ndf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndf/subscriptions","organizations_url":"https://api.github.com/users/ndf/orgs","repos_url":"https://api.github.com/users/ndf/repos","events_url":"https://api.github.com/users/ndf/events{/privacy}","received_events_url":"https://api.github.com/users/ndf/received_events","type":"User","site_admin":false},"repo":{"id":33877618,"name":"rules","full_name":"ndf/rules","owner":{"login":"ndf","id":2086206,"avatar_url":"https://avatars.githubusercontent.com/u/2086206?v=3","gravatar_id":"","url":"https://api.github.com/users/ndf","html_url":"https://github.com/ndf","followers_url":"https://api.github.com/users/ndf/followers","following_url":"https://api.github.com/users/ndf/following{/other_user}","gists_url":"https://api.github.com/users/ndf/gists{/gist_id}","starred_url":"https://api.github.com/users/ndf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndf/subscriptions","organizations_url":"https://api.github.com/users/ndf/orgs","repos_url":"https://api.github.com/users/ndf/repos","events_url":"https://api.github.com/users/ndf/events{/privacy}","received_events_url":"https://api.github.com/users/ndf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ndf/rules","description":"Rules 8.x-3.x development","fork":true,"url":"https://api.github.com/repos/ndf/rules","forks_url":"https://api.github.com/repos/ndf/rules/forks","keys_url":"https://api.github.com/repos/ndf/rules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndf/rules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndf/rules/teams","hooks_url":"https://api.github.com/repos/ndf/rules/hooks","issue_events_url":"https://api.github.com/repos/ndf/rules/issues/events{/number}","events_url":"https://api.github.com/repos/ndf/rules/events","assignees_url":"https://api.github.com/repos/ndf/rules/assignees{/user}","branches_url":"https://api.github.com/repos/ndf/rules/branches{/branch}","tags_url":"https://api.github.com/repos/ndf/rules/tags","blobs_url":"https://api.github.com/repos/ndf/rules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndf/rules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndf/rules/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndf/rules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndf/rules/statuses/{sha}","languages_url":"https://api.github.com/repos/ndf/rules/languages","stargazers_url":"https://api.github.com/repos/ndf/rules/stargazers","contributors_url":"https://api.github.com/repos/ndf/rules/contributors","subscribers_url":"https://api.github.com/repos/ndf/rules/subscribers","subscription_url":"https://api.github.com/repos/ndf/rules/subscription","commits_url":"https://api.github.com/repos/ndf/rules/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndf/rules/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndf/rules/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndf/rules/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndf/rules/contents/{+path}","compare_url":"https://api.github.com/repos/ndf/rules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndf/rules/merges","archive_url":"https://api.github.com/repos/ndf/rules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndf/rules/downloads","issues_url":"https://api.github.com/repos/ndf/rules/issues{/number}","pulls_url":"https://api.github.com/repos/ndf/rules/pulls{/number}","milestones_url":"https://api.github.com/repos/ndf/rules/milestones{/number}","notifications_url":"https://api.github.com/repos/ndf/rules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndf/rules/labels{/name}","releases_url":"https://api.github.com/repos/ndf/rules/releases{/id}","created_at":"2015-04-13T15:45:19Z","updated_at":"2015-04-14T13:18:10Z","pushed_at":"2015-12-03T13:15:57Z","git_url":"git://github.com/ndf/rules.git","ssh_url":"git@github.com:ndf/rules.git","clone_url":"https://github.com/ndf/rules.git","svn_url":"https://github.com/ndf/rules","homepage":null,"size":3285,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"8.x-3.x"}},"base":{"label":"fago:8.x-3.x","ref":"8.x-3.x","sha":"385471c1352ef498a1e3626398039bec047bfc61","user":{"login":"fago","id":132232,"avatar_url":"https://avatars.githubusercontent.com/u/132232?v=3","gravatar_id":"","url":"https://api.github.com/users/fago","html_url":"https://github.com/fago","followers_url":"https://api.github.com/users/fago/followers","following_url":"https://api.github.com/users/fago/following{/other_user}","gists_url":"https://api.github.com/users/fago/gists{/gist_id}","starred_url":"https://api.github.com/users/fago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fago/subscriptions","organizations_url":"https://api.github.com/users/fago/orgs","repos_url":"https://api.github.com/users/fago/repos","events_url":"https://api.github.com/users/fago/events{/privacy}","received_events_url":"https://api.github.com/users/fago/received_events","type":"User","site_admin":false},"repo":{"id":18917483,"name":"rules","full_name":"fago/rules","owner":{"login":"fago","id":132232,"avatar_url":"https://avatars.githubusercontent.com/u/132232?v=3","gravatar_id":"","url":"https://api.github.com/users/fago","html_url":"https://github.com/fago","followers_url":"https://api.github.com/users/fago/followers","following_url":"https://api.github.com/users/fago/following{/other_user}","gists_url":"https://api.github.com/users/fago/gists{/gist_id}","starred_url":"https://api.github.com/users/fago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fago/subscriptions","organizations_url":"https://api.github.com/users/fago/orgs","repos_url":"https://api.github.com/users/fago/repos","events_url":"https://api.github.com/users/fago/events{/privacy}","received_events_url":"https://api.github.com/users/fago/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fago/rules","description":"Rules 8.x-3.x development","fork":false,"url":"https://api.github.com/repos/fago/rules","forks_url":"https://api.github.com/repos/fago/rules/forks","keys_url":"https://api.github.com/repos/fago/rules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fago/rules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fago/rules/teams","hooks_url":"https://api.github.com/repos/fago/rules/hooks","issue_events_url":"https://api.github.com/repos/fago/rules/issues/events{/number}","events_url":"https://api.github.com/repos/fago/rules/events","assignees_url":"https://api.github.com/repos/fago/rules/assignees{/user}","branches_url":"https://api.github.com/repos/fago/rules/branches{/branch}","tags_url":"https://api.github.com/repos/fago/rules/tags","blobs_url":"https://api.github.com/repos/fago/rules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fago/rules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fago/rules/git/refs{/sha}","trees_url":"https://api.github.com/repos/fago/rules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fago/rules/statuses/{sha}","languages_url":"https://api.github.com/repos/fago/rules/languages","stargazers_url":"https://api.github.com/repos/fago/rules/stargazers","contributors_url":"https://api.github.com/repos/fago/rules/contributors","subscribers_url":"https://api.github.com/repos/fago/rules/subscribers","subscription_url":"https://api.github.com/repos/fago/rules/subscription","commits_url":"https://api.github.com/repos/fago/rules/commits{/sha}","git_commits_url":"https://api.github.com/repos/fago/rules/git/commits{/sha}","comments_url":"https://api.github.com/repos/fago/rules/comments{/number}","issue_comment_url":"https://api.github.com/repos/fago/rules/issues/comments{/number}","contents_url":"https://api.github.com/repos/fago/rules/contents/{+path}","compare_url":"https://api.github.com/repos/fago/rules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fago/rules/merges","archive_url":"https://api.github.com/repos/fago/rules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fago/rules/downloads","issues_url":"https://api.github.com/repos/fago/rules/issues{/number}","pulls_url":"https://api.github.com/repos/fago/rules/pulls{/number}","milestones_url":"https://api.github.com/repos/fago/rules/milestones{/number}","notifications_url":"https://api.github.com/repos/fago/rules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fago/rules/labels{/name}","releases_url":"https://api.github.com/repos/fago/rules/releases{/id}","created_at":"2014-04-18T15:49:13Z","updated_at":"2015-12-01T10:52:42Z","pushed_at":"2015-12-03T16:05:22Z","git_url":"git://github.com/fago/rules.git","ssh_url":"git@github.com:fago/rules.git","clone_url":"https://github.com/fago/rules.git","svn_url":"https://github.com/fago/rules","homepage":null,"size":4691,"stargazers_count":33,"watchers_count":33,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":19,"forks":100,"open_issues":19,"watchers":33,"default_branch":"8.x-3.x"}},"_links":{"self":{"href":"https://api.github.com/repos/fago/rules/pulls/308"},"html":{"href":"https://github.com/fago/rules/pull/308"},"issue":{"href":"https://api.github.com/repos/fago/rules/issues/308"},"comments":{"href":"https://api.github.com/repos/fago/rules/issues/308/comments"},"review_comments":{"href":"https://api.github.com/repos/fago/rules/pulls/308/comments"},"review_comment":{"href":"https://api.github.com/repos/fago/rules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fago/rules/pulls/308/commits"},"statuses":{"href":"https://api.github.com/repos/fago/rules/statuses/065b8e5446acbe6833c7326fcf2d5aef3f13aa3b"}}}}