{"action":"closed","number":691,"pull_request":{"url":"https://api.github.com/repos/panique/huge/pulls/691","id":41054474,"html_url":"https://github.com/panique/huge/pull/691","diff_url":"https://github.com/panique/huge/pull/691.diff","patch_url":"https://github.com/panique/huge/pull/691.patch","issue_url":"https://api.github.com/repos/panique/huge/issues/691","number":691,"state":"closed","locked":false,"title":"[TODO TESTING] UserRoleModel Re-Constructed","user":{"login":"mcanatalay","id":10347733,"avatar_url":"https://avatars.githubusercontent.com/u/10347733?v=3","gravatar_id":"","url":"https://api.github.com/users/mcanatalay","html_url":"https://github.com/mcanatalay","followers_url":"https://api.github.com/users/mcanatalay/followers","following_url":"https://api.github.com/users/mcanatalay/following{/other_user}","gists_url":"https://api.github.com/users/mcanatalay/gists{/gist_id}","starred_url":"https://api.github.com/users/mcanatalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcanatalay/subscriptions","organizations_url":"https://api.github.com/users/mcanatalay/orgs","repos_url":"https://api.github.com/users/mcanatalay/repos","events_url":"https://api.github.com/users/mcanatalay/events{/privacy}","received_events_url":"https://api.github.com/users/mcanatalay/received_events","type":"User","site_admin":false},"body":"Now, all users has role_id. This role id has its background info in roles. Roles only contain name of role and its id. Permissions does real job. It contains permission name and its granted value. For example if you want to give someone a admin permission. Just add Admin to permission name, and call it as,\r\ngetUserPermission($user_id,$permission_name);\r\nOR\r\ngetRolePermission(Request::get('user_role'));","created_at":"2015-07-28T20:09:07Z","updated_at":"2015-11-29T16:19:12Z","closed_at":"2015-11-29T16:19:12Z","merged_at":null,"merge_commit_sha":"ef934c1ae26ef0f9980f7a3fb142ac6a72de769e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/panique/huge/pulls/691/commits","review_comments_url":"https://api.github.com/repos/panique/huge/pulls/691/comments","review_comment_url":"https://api.github.com/repos/panique/huge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/panique/huge/issues/691/comments","statuses_url":"https://api.github.com/repos/panique/huge/statuses/114d235762fc67f27f50f32ba72af2e89c1a84ff","head":{"label":"mcanatalay:develop","ref":"develop","sha":"114d235762fc67f27f50f32ba72af2e89c1a84ff","user":{"login":"mcanatalay","id":10347733,"avatar_url":"https://avatars.githubusercontent.com/u/10347733?v=3","gravatar_id":"","url":"https://api.github.com/users/mcanatalay","html_url":"https://github.com/mcanatalay","followers_url":"https://api.github.com/users/mcanatalay/followers","following_url":"https://api.github.com/users/mcanatalay/following{/other_user}","gists_url":"https://api.github.com/users/mcanatalay/gists{/gist_id}","starred_url":"https://api.github.com/users/mcanatalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcanatalay/subscriptions","organizations_url":"https://api.github.com/users/mcanatalay/orgs","repos_url":"https://api.github.com/users/mcanatalay/repos","events_url":"https://api.github.com/users/mcanatalay/events{/privacy}","received_events_url":"https://api.github.com/users/mcanatalay/received_events","type":"User","site_admin":false},"repo":{"id":39854585,"name":"huge","full_name":"mcanatalay/huge","owner":{"login":"mcanatalay","id":10347733,"avatar_url":"https://avatars.githubusercontent.com/u/10347733?v=3","gravatar_id":"","url":"https://api.github.com/users/mcanatalay","html_url":"https://github.com/mcanatalay","followers_url":"https://api.github.com/users/mcanatalay/followers","following_url":"https://api.github.com/users/mcanatalay/following{/other_user}","gists_url":"https://api.github.com/users/mcanatalay/gists{/gist_id}","starred_url":"https://api.github.com/users/mcanatalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcanatalay/subscriptions","organizations_url":"https://api.github.com/users/mcanatalay/orgs","repos_url":"https://api.github.com/users/mcanatalay/repos","events_url":"https://api.github.com/users/mcanatalay/events{/privacy}","received_events_url":"https://api.github.com/users/mcanatalay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcanatalay/huge","description":"Simple user-authentication solution, embedded into a small framework.","fork":true,"url":"https://api.github.com/repos/mcanatalay/huge","forks_url":"https://api.github.com/repos/mcanatalay/huge/forks","keys_url":"https://api.github.com/repos/mcanatalay/huge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcanatalay/huge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcanatalay/huge/teams","hooks_url":"https://api.github.com/repos/mcanatalay/huge/hooks","issue_events_url":"https://api.github.com/repos/mcanatalay/huge/issues/events{/number}","events_url":"https://api.github.com/repos/mcanatalay/huge/events","assignees_url":"https://api.github.com/repos/mcanatalay/huge/assignees{/user}","branches_url":"https://api.github.com/repos/mcanatalay/huge/branches{/branch}","tags_url":"https://api.github.com/repos/mcanatalay/huge/tags","blobs_url":"https://api.github.com/repos/mcanatalay/huge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcanatalay/huge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcanatalay/huge/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcanatalay/huge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcanatalay/huge/statuses/{sha}","languages_url":"https://api.github.com/repos/mcanatalay/huge/languages","stargazers_url":"https://api.github.com/repos/mcanatalay/huge/stargazers","contributors_url":"https://api.github.com/repos/mcanatalay/huge/contributors","subscribers_url":"https://api.github.com/repos/mcanatalay/huge/subscribers","subscription_url":"https://api.github.com/repos/mcanatalay/huge/subscription","commits_url":"https://api.github.com/repos/mcanatalay/huge/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcanatalay/huge/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcanatalay/huge/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcanatalay/huge/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcanatalay/huge/contents/{+path}","compare_url":"https://api.github.com/repos/mcanatalay/huge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcanatalay/huge/merges","archive_url":"https://api.github.com/repos/mcanatalay/huge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcanatalay/huge/downloads","issues_url":"https://api.github.com/repos/mcanatalay/huge/issues{/number}","pulls_url":"https://api.github.com/repos/mcanatalay/huge/pulls{/number}","milestones_url":"https://api.github.com/repos/mcanatalay/huge/milestones{/number}","notifications_url":"https://api.github.com/repos/mcanatalay/huge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcanatalay/huge/labels{/name}","releases_url":"https://api.github.com/repos/mcanatalay/huge/releases{/id}","created_at":"2015-07-28T19:51:10Z","updated_at":"2015-07-28T19:51:11Z","pushed_at":"2015-07-28T21:01:10Z","git_url":"git://github.com/mcanatalay/huge.git","ssh_url":"git@github.com:mcanatalay/huge.git","clone_url":"https://github.com/mcanatalay/huge.git","svn_url":"https://github.com/mcanatalay/huge","homepage":"","size":6747,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"panique:develop","ref":"develop","sha":"ab7d68497b2ad808a8da4c592987747effeef629","user":{"login":"panique","id":156321,"avatar_url":"https://avatars.githubusercontent.com/u/156321?v=3","gravatar_id":"","url":"https://api.github.com/users/panique","html_url":"https://github.com/panique","followers_url":"https://api.github.com/users/panique/followers","following_url":"https://api.github.com/users/panique/following{/other_user}","gists_url":"https://api.github.com/users/panique/gists{/gist_id}","starred_url":"https://api.github.com/users/panique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panique/subscriptions","organizations_url":"https://api.github.com/users/panique/orgs","repos_url":"https://api.github.com/users/panique/repos","events_url":"https://api.github.com/users/panique/events{/privacy}","received_events_url":"https://api.github.com/users/panique/received_events","type":"User","site_admin":false},"repo":{"id":4237727,"name":"huge","full_name":"panique/huge","owner":{"login":"panique","id":156321,"avatar_url":"https://avatars.githubusercontent.com/u/156321?v=3","gravatar_id":"","url":"https://api.github.com/users/panique","html_url":"https://github.com/panique","followers_url":"https://api.github.com/users/panique/followers","following_url":"https://api.github.com/users/panique/following{/other_user}","gists_url":"https://api.github.com/users/panique/gists{/gist_id}","starred_url":"https://api.github.com/users/panique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panique/subscriptions","organizations_url":"https://api.github.com/users/panique/orgs","repos_url":"https://api.github.com/users/panique/repos","events_url":"https://api.github.com/users/panique/events{/privacy}","received_events_url":"https://api.github.com/users/panique/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/panique/huge","description":"Simple user-authentication solution, embedded into a small framework.","fork":false,"url":"https://api.github.com/repos/panique/huge","forks_url":"https://api.github.com/repos/panique/huge/forks","keys_url":"https://api.github.com/repos/panique/huge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/panique/huge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/panique/huge/teams","hooks_url":"https://api.github.com/repos/panique/huge/hooks","issue_events_url":"https://api.github.com/repos/panique/huge/issues/events{/number}","events_url":"https://api.github.com/repos/panique/huge/events","assignees_url":"https://api.github.com/repos/panique/huge/assignees{/user}","branches_url":"https://api.github.com/repos/panique/huge/branches{/branch}","tags_url":"https://api.github.com/repos/panique/huge/tags","blobs_url":"https://api.github.com/repos/panique/huge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/panique/huge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/panique/huge/git/refs{/sha}","trees_url":"https://api.github.com/repos/panique/huge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/panique/huge/statuses/{sha}","languages_url":"https://api.github.com/repos/panique/huge/languages","stargazers_url":"https://api.github.com/repos/panique/huge/stargazers","contributors_url":"https://api.github.com/repos/panique/huge/contributors","subscribers_url":"https://api.github.com/repos/panique/huge/subscribers","subscription_url":"https://api.github.com/repos/panique/huge/subscription","commits_url":"https://api.github.com/repos/panique/huge/commits{/sha}","git_commits_url":"https://api.github.com/repos/panique/huge/git/commits{/sha}","comments_url":"https://api.github.com/repos/panique/huge/comments{/number}","issue_comment_url":"https://api.github.com/repos/panique/huge/issues/comments{/number}","contents_url":"https://api.github.com/repos/panique/huge/contents/{+path}","compare_url":"https://api.github.com/repos/panique/huge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/panique/huge/merges","archive_url":"https://api.github.com/repos/panique/huge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/panique/huge/downloads","issues_url":"https://api.github.com/repos/panique/huge/issues{/number}","pulls_url":"https://api.github.com/repos/panique/huge/pulls{/number}","milestones_url":"https://api.github.com/repos/panique/huge/milestones{/number}","notifications_url":"https://api.github.com/repos/panique/huge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/panique/huge/labels{/name}","releases_url":"https://api.github.com/repos/panique/huge/releases{/id}","created_at":"2012-05-06T01:04:43Z","updated_at":"2015-11-29T14:43:49Z","pushed_at":"2015-11-29T05:14:36Z","git_url":"git://github.com/panique/huge.git","ssh_url":"git@github.com:panique/huge.git","clone_url":"https://github.com/panique/huge.git","svn_url":"https://github.com/panique/huge","homepage":"","size":9890,"stargazers_count":1746,"watchers_count":1746,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":765,"mirror_url":null,"open_issues_count":16,"forks":765,"open_issues":16,"watchers":1746,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/panique/huge/pulls/691"},"html":{"href":"https://github.com/panique/huge/pull/691"},"issue":{"href":"https://api.github.com/repos/panique/huge/issues/691"},"comments":{"href":"https://api.github.com/repos/panique/huge/issues/691/comments"},"review_comments":{"href":"https://api.github.com/repos/panique/huge/pulls/691/comments"},"review_comment":{"href":"https://api.github.com/repos/panique/huge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/panique/huge/pulls/691/commits"},"statuses":{"href":"https://api.github.com/repos/panique/huge/statuses/114d235762fc67f27f50f32ba72af2e89c1a84ff"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":3,"review_comments":0,"commits":13,"additions":211,"deletions":77,"changed_files":10}}