{"action":"created","comment":{"url":"https://api.github.com/repos/andela/suyabay/pulls/comments/68610676","id":68610676,"diff_hunk":"@@ -608,3 +610,37 @@ p.flow-text.center-align.padcast-page-sub-header {\n .signup-login-btn {\n   margin-top: 3%;\n }\n+\n+.align-left {\n+  background-color: #2C3E50;\n+  padding: 3px 10px;\n+  color: #fff;\n+}\n+\n+.counts {\n+  font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n+  font-size: 18px;\n+ }\n+\n+ .heading {\n+  font-size: 26px;\n+  margin-left: 10px;\n+}\n+\n+.username {\n+  max-width: 100px;\n+  text-overflow:ellipsis;\n+  overflow: hidden;\n+  white-space: nowrap;\n+  float: left;\n+  margin-top: -2px;\n+}\n+\n+.dropdown-button img {\n+  float: left;\n+  margin: 10px;\n+}\n+\n+nav ul li:hover, nav ul li.active {\n+  background-color: transparent !important;","path":"resources/assets/sass/main.scss","position":58,"original_position":58,"commit_id":"b2cd2a6c2442fe0486098309fb5a5a3eb4c03155","original_commit_id":"b2cd2a6c2442fe0486098309fb5a5a3eb4c03155","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"!important should not be used","created_at":"2016-06-27T16:36:05Z","updated_at":"2016-06-27T16:36:05Z","html_url":"https://github.com/andela/suyabay/pull/323#discussion_r68610676","pull_request_url":"https://api.github.com/repos/andela/suyabay/pulls/323","_links":{"self":{"href":"https://api.github.com/repos/andela/suyabay/pulls/comments/68610676"},"html":{"href":"https://github.com/andela/suyabay/pull/323#discussion_r68610676"},"pull_request":{"href":"https://api.github.com/repos/andela/suyabay/pulls/323"}}},"pull_request":{"url":"https://api.github.com/repos/andela/suyabay/pulls/323","id":74602492,"html_url":"https://github.com/andela/suyabay/pull/323","diff_url":"https://github.com/andela/suyabay/pull/323.diff","patch_url":"https://github.com/andela/suyabay/pull/323.patch","issue_url":"https://api.github.com/repos/andela/suyabay/issues/323","number":323,"state":"open","locked":false,"title":"Create a proper authorization for Suyabay dashboard.","user":{"login":"andela-tolotin","id":14159435,"avatar_url":"https://avatars.githubusercontent.com/u/14159435?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tolotin","html_url":"https://github.com/andela-tolotin","followers_url":"https://api.github.com/users/andela-tolotin/followers","following_url":"https://api.github.com/users/andela-tolotin/following{/other_user}","gists_url":"https://api.github.com/users/andela-tolotin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tolotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tolotin/subscriptions","organizations_url":"https://api.github.com/users/andela-tolotin/orgs","repos_url":"https://api.github.com/users/andela-tolotin/repos","events_url":"https://api.github.com/users/andela-tolotin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tolotin/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n\r\n- Create a proper authorization for Suyabay dashboard.\r\n\r\n#### Description of Task to be completed?\r\n\r\n- Create a middleware that prevents regular users from having access to premium users' routes\r\n- Create a middleware that prevents both regular and premium users from accessing super admin routes\r\n- Group episodes routes' and add a middleware that prevent regular users from accessing them.\r\n- Group users routes' and add a middleware that prevent regular and premium  users from accessing them.\r\n- Group channels routes' and add a middleware that prevent regular and premium  users from accessing them.\r\n \r\n#### How should this be manually tested?\r\n\r\n- User should log in with a regular user account and visits the following routes;\r\n-   `/dashboard `\r\n-   `/dashboard/episode/create`\r\n-   `/dashboard/episodes`\r\n-   `/dashboard/edit/{id} `\r\n-   `/dashboard/delete/{id} `\r\n\r\nAnd  should see an error 401 page.\r\n\r\n- User should log in with either  a regular or premium  user account and visits the following routes;\r\n-   `/dashboard/channels/create `\r\n-   `/dashboard/channels`\r\n-   `/dashboard/channels/edit/{id}`\r\n-   `/dashboard/channels/delete/{id}`\r\n-   `/dashboard/users/ `\r\n-   `/dashboard/user/create `\r\n-   `/dashboard/user/edit/{id} `\r\n-   `/dashboard/user/delete/{id} `\r\n\r\nAnd should see an error 401 page \r\n\r\n\r\n#### Any background context you want to provide?\r\n#### What are the relevant pivotal tracker stories?\r\n#### Screenshots (if appropriate)\r\n#### Questions:\r\n[@unicodeveloper](https://github.com/unicodeveloper)\r\n[@andela-oadebayo](https://github.com/andela-oadebayo)\r\n","created_at":"2016-06-21T12:28:52Z","updated_at":"2016-06-27T16:36:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fafb0c00022a08de7c991bc49757e5dd0365c9f4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/suyabay/pulls/323/commits","review_comments_url":"https://api.github.com/repos/andela/suyabay/pulls/323/comments","review_comment_url":"https://api.github.com/repos/andela/suyabay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/suyabay/issues/323/comments","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/b2cd2a6c2442fe0486098309fb5a5a3eb4c03155","head":{"label":"andela:bg-fix-authorization-issues-121931919","ref":"bg-fix-authorization-issues-121931919","sha":"b2cd2a6c2442fe0486098309fb5a5a3eb4c03155","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":41855319,"name":"suyabay","full_name":"andela/suyabay","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/suyabay","description":"Awesome Podcast FM Network for Suya Lovers","fork":false,"url":"https://api.github.com/repos/andela/suyabay","forks_url":"https://api.github.com/repos/andela/suyabay/forks","keys_url":"https://api.github.com/repos/andela/suyabay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/suyabay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/suyabay/teams","hooks_url":"https://api.github.com/repos/andela/suyabay/hooks","issue_events_url":"https://api.github.com/repos/andela/suyabay/issues/events{/number}","events_url":"https://api.github.com/repos/andela/suyabay/events","assignees_url":"https://api.github.com/repos/andela/suyabay/assignees{/user}","branches_url":"https://api.github.com/repos/andela/suyabay/branches{/branch}","tags_url":"https://api.github.com/repos/andela/suyabay/tags","blobs_url":"https://api.github.com/repos/andela/suyabay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/suyabay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/suyabay/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/suyabay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/suyabay/languages","stargazers_url":"https://api.github.com/repos/andela/suyabay/stargazers","contributors_url":"https://api.github.com/repos/andela/suyabay/contributors","subscribers_url":"https://api.github.com/repos/andela/suyabay/subscribers","subscription_url":"https://api.github.com/repos/andela/suyabay/subscription","commits_url":"https://api.github.com/repos/andela/suyabay/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/suyabay/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/suyabay/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/suyabay/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/suyabay/contents/{+path}","compare_url":"https://api.github.com/repos/andela/suyabay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/suyabay/merges","archive_url":"https://api.github.com/repos/andela/suyabay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/suyabay/downloads","issues_url":"https://api.github.com/repos/andela/suyabay/issues{/number}","pulls_url":"https://api.github.com/repos/andela/suyabay/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/suyabay/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/suyabay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/suyabay/labels{/name}","releases_url":"https://api.github.com/repos/andela/suyabay/releases{/id}","deployments_url":"https://api.github.com/repos/andela/suyabay/deployments","created_at":"2015-09-03T11:00:56Z","updated_at":"2016-03-11T18:32:31Z","pushed_at":"2016-06-27T16:35:55Z","git_url":"git://github.com/andela/suyabay.git","ssh_url":"git@github.com:andela/suyabay.git","clone_url":"https://github.com/andela/suyabay.git","svn_url":"https://github.com/andela/suyabay","homepage":"https://suyabay-staging.herokuapp.com","size":35930,"stargazers_count":8,"watchers_count":8,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":11,"forks":5,"open_issues":11,"watchers":8,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"617978764de944625c1882bc7cdccec855b69a7b","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":41855319,"name":"suyabay","full_name":"andela/suyabay","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/suyabay","description":"Awesome Podcast FM Network for Suya Lovers","fork":false,"url":"https://api.github.com/repos/andela/suyabay","forks_url":"https://api.github.com/repos/andela/suyabay/forks","keys_url":"https://api.github.com/repos/andela/suyabay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/suyabay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/suyabay/teams","hooks_url":"https://api.github.com/repos/andela/suyabay/hooks","issue_events_url":"https://api.github.com/repos/andela/suyabay/issues/events{/number}","events_url":"https://api.github.com/repos/andela/suyabay/events","assignees_url":"https://api.github.com/repos/andela/suyabay/assignees{/user}","branches_url":"https://api.github.com/repos/andela/suyabay/branches{/branch}","tags_url":"https://api.github.com/repos/andela/suyabay/tags","blobs_url":"https://api.github.com/repos/andela/suyabay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/suyabay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/suyabay/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/suyabay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/suyabay/languages","stargazers_url":"https://api.github.com/repos/andela/suyabay/stargazers","contributors_url":"https://api.github.com/repos/andela/suyabay/contributors","subscribers_url":"https://api.github.com/repos/andela/suyabay/subscribers","subscription_url":"https://api.github.com/repos/andela/suyabay/subscription","commits_url":"https://api.github.com/repos/andela/suyabay/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/suyabay/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/suyabay/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/suyabay/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/suyabay/contents/{+path}","compare_url":"https://api.github.com/repos/andela/suyabay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/suyabay/merges","archive_url":"https://api.github.com/repos/andela/suyabay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/suyabay/downloads","issues_url":"https://api.github.com/repos/andela/suyabay/issues{/number}","pulls_url":"https://api.github.com/repos/andela/suyabay/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/suyabay/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/suyabay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/suyabay/labels{/name}","releases_url":"https://api.github.com/repos/andela/suyabay/releases{/id}","deployments_url":"https://api.github.com/repos/andela/suyabay/deployments","created_at":"2015-09-03T11:00:56Z","updated_at":"2016-03-11T18:32:31Z","pushed_at":"2016-06-27T16:35:55Z","git_url":"git://github.com/andela/suyabay.git","ssh_url":"git@github.com:andela/suyabay.git","clone_url":"https://github.com/andela/suyabay.git","svn_url":"https://github.com/andela/suyabay","homepage":"https://suyabay-staging.herokuapp.com","size":35930,"stargazers_count":8,"watchers_count":8,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":11,"forks":5,"open_issues":11,"watchers":8,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/suyabay/pulls/323"},"html":{"href":"https://github.com/andela/suyabay/pull/323"},"issue":{"href":"https://api.github.com/repos/andela/suyabay/issues/323"},"comments":{"href":"https://api.github.com/repos/andela/suyabay/issues/323/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/suyabay/pulls/323/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/suyabay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/suyabay/pulls/323/commits"},"statuses":{"href":"https://api.github.com/repos/andela/suyabay/statuses/b2cd2a6c2442fe0486098309fb5a5a3eb4c03155"}}}}
{"actor":{"display_login":"houndci-bot"}}