{"action":"created","issue":{"url":"https://api.github.com/repos/dashiwa/DrupalAcquia/issues/2","repository_url":"https://api.github.com/repos/dashiwa/DrupalAcquia","labels_url":"https://api.github.com/repos/dashiwa/DrupalAcquia/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dashiwa/DrupalAcquia/issues/2/comments","events_url":"https://api.github.com/repos/dashiwa/DrupalAcquia/issues/2/events","html_url":"https://github.com/dashiwa/DrupalAcquia/issues/2","id":390971141,"node_id":"MDU6SXNzdWUzOTA5NzExNDE=","number":2,"title":"Define Permissions for a Module","user":{"login":"dashiwa","id":1746232,"node_id":"MDQ6VXNlcjE3NDYyMzI=","avatar_url":"https://avatars2.githubusercontent.com/u/1746232?v=4","gravatar_id":"","url":"https://api.github.com/users/dashiwa","html_url":"https://github.com/dashiwa","followers_url":"https://api.github.com/users/dashiwa/followers","following_url":"https://api.github.com/users/dashiwa/following{/other_user}","gists_url":"https://api.github.com/users/dashiwa/gists{/gist_id}","starred_url":"https://api.github.com/users/dashiwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dashiwa/subscriptions","organizations_url":"https://api.github.com/users/dashiwa/orgs","repos_url":"https://api.github.com/users/dashiwa/repos","events_url":"https://api.github.com/users/dashiwa/events{/privacy}","received_events_url":"https://api.github.com/users/dashiwa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-14T05:29:11Z","updated_at":"2018-12-14T05:31:54Z","closed_at":null,"author_association":"OWNER","body":"Статические доступы\r\n```\r\n'delete contact entity':\r\n  title: Delete entity content\r\n'add contact entity':\r\n  title: Add entity content\r\n'view contact entity':\r\n  title: View entity content\r\n'edit contact entity':\r\n  title: Edit entity content\r\n'administer contact entity':\r\n  title: Administer settings\r\n```\r\n\r\nС описанием\r\n```\r\n'delete contact entity':\r\n  title: Delete entity content\r\n  description: Allows users to delete contacts.\r\n'add contact entity':\r\n  title: Add entity content\r\n'view contact entity':\r\n  title: View entity content\r\n'edit contact entity':\r\n  title: Edit entity content\r\n  description: Allows users to edit contacts.\r\n'administer contact entity':\r\n  title: Administer settings\r\n  description: Allows users to alter the settings related to contacts.\r\n  restrict access: TRUE\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dashiwa/DrupalAcquia/issues/comments/447218824","html_url":"https://github.com/dashiwa/DrupalAcquia/issues/2#issuecomment-447218824","issue_url":"https://api.github.com/repos/dashiwa/DrupalAcquia/issues/2","id":447218824,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzIxODgyNA==","user":{"login":"dashiwa","id":1746232,"node_id":"MDQ6VXNlcjE3NDYyMzI=","avatar_url":"https://avatars2.githubusercontent.com/u/1746232?v=4","gravatar_id":"","url":"https://api.github.com/users/dashiwa","html_url":"https://github.com/dashiwa","followers_url":"https://api.github.com/users/dashiwa/followers","following_url":"https://api.github.com/users/dashiwa/following{/other_user}","gists_url":"https://api.github.com/users/dashiwa/gists{/gist_id}","starred_url":"https://api.github.com/users/dashiwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dashiwa/subscriptions","organizations_url":"https://api.github.com/users/dashiwa/orgs","repos_url":"https://api.github.com/users/dashiwa/repos","events_url":"https://api.github.com/users/dashiwa/events{/privacy}","received_events_url":"https://api.github.com/users/dashiwa/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T05:31:54Z","updated_at":"2018-12-14T05:31:54Z","author_association":"OWNER","body":"```\r\n/**\r\n   * Returns a list of node permissions for a given node type.\r\n   *\r\n   * @param \\Drupal\\node\\Entity\\NodeType $type\r\n   *   The node type.\r\n   *\r\n   * @return array\r\n   *   An associative array of permission names and descriptions.\r\n   */\r\n  protected function buildPermissions(NodeType $type) {\r\n    $type_id = $type->id();\r\n    $type_params = array('%type_name' => $type->label());\r\n\r\n    return array(\r\n      \"create $type_id content\" => array(\r\n        'title' => $this->t('%type_name: Create new content', $type_params),\r\n      ),\r\n      \"edit own $type_id content\" => array(\r\n        'title' => $this->t('%type_name: Edit own content', $type_params),\r\n      ),\r\n      \"edit any $type_id content\" => array(\r\n        'title' => $this->t('%type_name: Edit any content', $type_params),\r\n      ),\r\n      \"delete own $type_id content\" => array(\r\n        'title' => $this->t('%type_name: Delete own content', $type_params),\r\n      ),\r\n      \"delete any $type_id content\" => array(\r\n        'title' => $this->t('%type_name: Delete any content', $type_params),\r\n      ),\r\n      \"view $type_id revisions\" => array(\r\n        'title' => $this->t('%type_name: View revisions', $type_params),\r\n      ),\r\n      \"revert $type_id revisions\" => array(\r\n        'title' => $this->t('%type_name: Revert revisions', $type_params),\r\n        'description' => t('Role requires permission <em>view revisions</em> and <em>edit rights</em> for nodes in question, or <em>administer nodes</em>.'),\r\n      ),\r\n      \"delete $type_id revisions\" => array(\r\n        'title' => $this->t('%type_name: Delete revisions', $type_params),\r\n        'description' => $this->t('Role requires permission to <em>view revisions</em> and <em>delete rights</em> for nodes in question, or <em>administer nodes</em>.'),\r\n      ),\r\n    );\r\n  }\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"dashiwa"}}