{"action":"created","comment":{"url":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/comments/45128650","id":45128650,"diff_hunk":"@@ -0,0 +1,91 @@\n+Models\n+======\n+\n+.. _component_rbac_model_permission:\n+\n+Permission\n+----------\n+\n+The **Permission** object represents an permission.\n+**Permissions** are defined as a tree, top level tree has all the permissions defined in the lower nodes.\n+Permissions have the following properties:\n+\n++-------------+---------------------------------------------------------------------------+\n+| Property    | Description                                                               |\n++=============+===========================================================================+\n+| id          | Unique id of the Permission                                               |\n++-------------+---------------------------------------------------------------------------+\n+| code        | Code of Permission (e.g. \"sylius.customer.manage\", \"sylius.channel.show\") |\n++-------------+---------------------------------------------------------------------------+\n+| description | (e.g. \"Manage customers\", \"Show channel\")                                 |\n++-------------+---------------------------------------------------------------------------+\n+| parent      | Reference to parent Permission                                            |\n++-------------+---------------------------------------------------------------------------+\n+| children    | Collection of children Permissions                                        |\n++-------------+---------------------------------------------------------------------------+\n+| left        | Reference to left leaf                                                    |\n++-------------+---------------------------------------------------------------------------+\n+| right       | Reference to right leaf                                                   |\n++-------------+---------------------------------------------------------------------------+\n+| level       | Tree level                                                                |\n++-------------+---------------------------------------------------------------------------+\n+| createdAt   | Date when Permission was created                                          |\n++-------------+---------------------------------------------------------------------------+\n+| updatedAt   | Date of last change                                                       |\n++-------------+---------------------------------------------------------------------------+\n+\n+.. note::\n+    This model implements the :ref:`component_rbac_model_permission-interface`. |br|\n+    For more detailed information go to `Sylius API Permission`_.\n+\n+.. _Sylius API Permission: http://api.sylius.org/Sylius/Component/Rbac/Model/Permission.html\n+\n+.. _component_rbac_model_role:\n+\n+Role\n+----\n+\n+The **Role** object represents an role.\n+Every Identity can have multiple roles, which inherit all permissions from their child roles.\n+If you want to have **Roles** in your model, just implement :ref:`component_rbac_model_identity-interface`.\n+\n++---------------+-----------------------------------------------------------------------+\n+| Property      | Description                                                           |\n++===============+=======================================================================+\n+| id            | Unique id of the Role                                                 |\n++---------------+-----------------------------------------------------------------------+\n+| code          | Code of Role                                                          |\n++---------------+-----------------------------------------------------------------------+\n+| name          | Role name (e.g. \"Administrator\", \"Catalog Manager\", Shipping Manager) |","path":"components/Rbac/models.rst","position":59,"original_position":59,"commit_id":"d0717e656a29abbd8d028c1bc523e618f470df7f","original_commit_id":"d0717e656a29abbd8d028c1bc523e618f470df7f","user":{"login":"pjedrzejewski","id":614970,"avatar_url":"https://avatars.githubusercontent.com/u/614970?v=3","gravatar_id":"","url":"https://api.github.com/users/pjedrzejewski","html_url":"https://github.com/pjedrzejewski","followers_url":"https://api.github.com/users/pjedrzejewski/followers","following_url":"https://api.github.com/users/pjedrzejewski/following{/other_user}","gists_url":"https://api.github.com/users/pjedrzejewski/gists{/gist_id}","starred_url":"https://api.github.com/users/pjedrzejewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjedrzejewski/subscriptions","organizations_url":"https://api.github.com/users/pjedrzejewski/orgs","repos_url":"https://api.github.com/users/pjedrzejewski/repos","events_url":"https://api.github.com/users/pjedrzejewski/events{/privacy}","received_events_url":"https://api.github.com/users/pjedrzejewski/received_events","type":"User","site_admin":false},"body":":+1: for showing examples!","created_at":"2015-11-17T22:02:45Z","updated_at":"2015-11-17T22:02:45Z","html_url":"https://github.com/Sylius/Sylius-Docs/pull/363#discussion_r45128650","pull_request_url":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363","_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/comments/45128650"},"html":{"href":"https://github.com/Sylius/Sylius-Docs/pull/363#discussion_r45128650"},"pull_request":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363"}}},"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363","id":50877069,"html_url":"https://github.com/Sylius/Sylius-Docs/pull/363","diff_url":"https://github.com/Sylius/Sylius-Docs/pull/363.diff","patch_url":"https://github.com/Sylius/Sylius-Docs/pull/363.patch","issue_url":"https://api.github.com/repos/Sylius/Sylius-Docs/issues/363","number":363,"state":"open","locked":false,"title":"[Rbac] Documentation of Rbac component","user":{"login":"Arminek","id":6368946,"avatar_url":"https://avatars.githubusercontent.com/u/6368946?v=3","gravatar_id":"","url":"https://api.github.com/users/Arminek","html_url":"https://github.com/Arminek","followers_url":"https://api.github.com/users/Arminek/followers","following_url":"https://api.github.com/users/Arminek/following{/other_user}","gists_url":"https://api.github.com/users/Arminek/gists{/gist_id}","starred_url":"https://api.github.com/users/Arminek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arminek/subscriptions","organizations_url":"https://api.github.com/users/Arminek/orgs","repos_url":"https://api.github.com/users/Arminek/repos","events_url":"https://api.github.com/users/Arminek/events{/privacy}","received_events_url":"https://api.github.com/users/Arminek/received_events","type":"User","site_admin":false},"body":"| Q                    | A\r\n| -------------------| ---\r\n| Doc fix?          | [yes]\r\n| New docs?     | [no] \r\n| Fixed tickets   | [no]","created_at":"2015-11-16T22:37:02Z","updated_at":"2015-11-17T22:02:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"297000355b1152bac29c43b20e17f3e468753a20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363/commits","review_comments_url":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363/comments","review_comment_url":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sylius/Sylius-Docs/issues/363/comments","statuses_url":"https://api.github.com/repos/Sylius/Sylius-Docs/statuses/d0717e656a29abbd8d028c1bc523e618f470df7f","head":{"label":"Arminek:sylius-rbac-component","ref":"sylius-rbac-component","sha":"d0717e656a29abbd8d028c1bc523e618f470df7f","user":{"login":"Arminek","id":6368946,"avatar_url":"https://avatars.githubusercontent.com/u/6368946?v=3","gravatar_id":"","url":"https://api.github.com/users/Arminek","html_url":"https://github.com/Arminek","followers_url":"https://api.github.com/users/Arminek/followers","following_url":"https://api.github.com/users/Arminek/following{/other_user}","gists_url":"https://api.github.com/users/Arminek/gists{/gist_id}","starred_url":"https://api.github.com/users/Arminek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arminek/subscriptions","organizations_url":"https://api.github.com/users/Arminek/orgs","repos_url":"https://api.github.com/users/Arminek/repos","events_url":"https://api.github.com/users/Arminek/events{/privacy}","received_events_url":"https://api.github.com/users/Arminek/received_events","type":"User","site_admin":false},"repo":{"id":44026694,"name":"Sylius-Docs","full_name":"Arminek/Sylius-Docs","owner":{"login":"Arminek","id":6368946,"avatar_url":"https://avatars.githubusercontent.com/u/6368946?v=3","gravatar_id":"","url":"https://api.github.com/users/Arminek","html_url":"https://github.com/Arminek","followers_url":"https://api.github.com/users/Arminek/followers","following_url":"https://api.github.com/users/Arminek/following{/other_user}","gists_url":"https://api.github.com/users/Arminek/gists{/gist_id}","starred_url":"https://api.github.com/users/Arminek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arminek/subscriptions","organizations_url":"https://api.github.com/users/Arminek/orgs","repos_url":"https://api.github.com/users/Arminek/repos","events_url":"https://api.github.com/users/Arminek/events{/privacy}","received_events_url":"https://api.github.com/users/Arminek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arminek/Sylius-Docs","description":"Official documentation repository, hosted on readthedocs.org.","fork":true,"url":"https://api.github.com/repos/Arminek/Sylius-Docs","forks_url":"https://api.github.com/repos/Arminek/Sylius-Docs/forks","keys_url":"https://api.github.com/repos/Arminek/Sylius-Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arminek/Sylius-Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arminek/Sylius-Docs/teams","hooks_url":"https://api.github.com/repos/Arminek/Sylius-Docs/hooks","issue_events_url":"https://api.github.com/repos/Arminek/Sylius-Docs/issues/events{/number}","events_url":"https://api.github.com/repos/Arminek/Sylius-Docs/events","assignees_url":"https://api.github.com/repos/Arminek/Sylius-Docs/assignees{/user}","branches_url":"https://api.github.com/repos/Arminek/Sylius-Docs/branches{/branch}","tags_url":"https://api.github.com/repos/Arminek/Sylius-Docs/tags","blobs_url":"https://api.github.com/repos/Arminek/Sylius-Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arminek/Sylius-Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arminek/Sylius-Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arminek/Sylius-Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arminek/Sylius-Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Arminek/Sylius-Docs/languages","stargazers_url":"https://api.github.com/repos/Arminek/Sylius-Docs/stargazers","contributors_url":"https://api.github.com/repos/Arminek/Sylius-Docs/contributors","subscribers_url":"https://api.github.com/repos/Arminek/Sylius-Docs/subscribers","subscription_url":"https://api.github.com/repos/Arminek/Sylius-Docs/subscription","commits_url":"https://api.github.com/repos/Arminek/Sylius-Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arminek/Sylius-Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arminek/Sylius-Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arminek/Sylius-Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arminek/Sylius-Docs/contents/{+path}","compare_url":"https://api.github.com/repos/Arminek/Sylius-Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arminek/Sylius-Docs/merges","archive_url":"https://api.github.com/repos/Arminek/Sylius-Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arminek/Sylius-Docs/downloads","issues_url":"https://api.github.com/repos/Arminek/Sylius-Docs/issues{/number}","pulls_url":"https://api.github.com/repos/Arminek/Sylius-Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Arminek/Sylius-Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Arminek/Sylius-Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arminek/Sylius-Docs/labels{/name}","releases_url":"https://api.github.com/repos/Arminek/Sylius-Docs/releases{/id}","created_at":"2015-10-10T20:18:32Z","updated_at":"2015-10-10T20:18:33Z","pushed_at":"2015-11-17T08:38:05Z","git_url":"git://github.com/Arminek/Sylius-Docs.git","ssh_url":"git@github.com:Arminek/Sylius-Docs.git","clone_url":"https://github.com/Arminek/Sylius-Docs.git","svn_url":"https://github.com/Arminek/Sylius-Docs","homepage":"Sylius.org","size":1031,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"master"}},"base":{"label":"Sylius:master","ref":"master","sha":"76bdfcf850a592f25780efcdf68d448b38870dd7","user":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"repo":{"id":2892960,"name":"Sylius-Docs","full_name":"Sylius/Sylius-Docs","owner":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sylius/Sylius-Docs","description":"Official documentation repository, hosted on readthedocs.org.","fork":false,"url":"https://api.github.com/repos/Sylius/Sylius-Docs","forks_url":"https://api.github.com/repos/Sylius/Sylius-Docs/forks","keys_url":"https://api.github.com/repos/Sylius/Sylius-Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sylius/Sylius-Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sylius/Sylius-Docs/teams","hooks_url":"https://api.github.com/repos/Sylius/Sylius-Docs/hooks","issue_events_url":"https://api.github.com/repos/Sylius/Sylius-Docs/issues/events{/number}","events_url":"https://api.github.com/repos/Sylius/Sylius-Docs/events","assignees_url":"https://api.github.com/repos/Sylius/Sylius-Docs/assignees{/user}","branches_url":"https://api.github.com/repos/Sylius/Sylius-Docs/branches{/branch}","tags_url":"https://api.github.com/repos/Sylius/Sylius-Docs/tags","blobs_url":"https://api.github.com/repos/Sylius/Sylius-Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sylius/Sylius-Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sylius/Sylius-Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sylius/Sylius-Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sylius/Sylius-Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Sylius/Sylius-Docs/languages","stargazers_url":"https://api.github.com/repos/Sylius/Sylius-Docs/stargazers","contributors_url":"https://api.github.com/repos/Sylius/Sylius-Docs/contributors","subscribers_url":"https://api.github.com/repos/Sylius/Sylius-Docs/subscribers","subscription_url":"https://api.github.com/repos/Sylius/Sylius-Docs/subscription","commits_url":"https://api.github.com/repos/Sylius/Sylius-Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sylius/Sylius-Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sylius/Sylius-Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sylius/Sylius-Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sylius/Sylius-Docs/contents/{+path}","compare_url":"https://api.github.com/repos/Sylius/Sylius-Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sylius/Sylius-Docs/merges","archive_url":"https://api.github.com/repos/Sylius/Sylius-Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sylius/Sylius-Docs/downloads","issues_url":"https://api.github.com/repos/Sylius/Sylius-Docs/issues{/number}","pulls_url":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Sylius/Sylius-Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Sylius/Sylius-Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sylius/Sylius-Docs/labels{/name}","releases_url":"https://api.github.com/repos/Sylius/Sylius-Docs/releases{/id}","created_at":"2011-12-01T17:58:56Z","updated_at":"2015-11-12T14:30:17Z","pushed_at":"2015-11-17T20:06:14Z","git_url":"git://github.com/Sylius/Sylius-Docs.git","ssh_url":"git@github.com:Sylius/Sylius-Docs.git","clone_url":"https://github.com/Sylius/Sylius-Docs.git","svn_url":"https://github.com/Sylius/Sylius-Docs","homepage":"Sylius.org","size":4385,"stargazers_count":55,"watchers_count":55,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":128,"mirror_url":null,"open_issues_count":47,"forks":128,"open_issues":47,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363"},"html":{"href":"https://github.com/Sylius/Sylius-Docs/pull/363"},"issue":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/issues/363"},"comments":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/issues/363/comments"},"review_comments":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363/comments"},"review_comment":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/pulls/363/commits"},"statuses":{"href":"https://api.github.com/repos/Sylius/Sylius-Docs/statuses/d0717e656a29abbd8d028c1bc523e618f470df7f"}}}}