{"action":"closed","issue":{"url":"https://api.github.com/repos/websanova/vue-auth/issues/407","repository_url":"https://api.github.com/repos/websanova/vue-auth","labels_url":"https://api.github.com/repos/websanova/vue-auth/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/websanova/vue-auth/issues/407/comments","events_url":"https://api.github.com/repos/websanova/vue-auth/issues/407/events","html_url":"https://github.com/websanova/vue-auth/issues/407","id":344477796,"node_id":"MDU6SXNzdWUzNDQ0Nzc3OTY=","number":407,"title":"Implement role hierarchy","user":{"login":"pabloraissiguier","id":5788163,"node_id":"MDQ6VXNlcjU3ODgxNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/5788163?v=4","gravatar_id":"","url":"https://api.github.com/users/pabloraissiguier","html_url":"https://github.com/pabloraissiguier","followers_url":"https://api.github.com/users/pabloraissiguier/followers","following_url":"https://api.github.com/users/pabloraissiguier/following{/other_user}","gists_url":"https://api.github.com/users/pabloraissiguier/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloraissiguier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloraissiguier/subscriptions","organizations_url":"https://api.github.com/users/pabloraissiguier/orgs","repos_url":"https://api.github.com/users/pabloraissiguier/repos","events_url":"https://api.github.com/users/pabloraissiguier/events{/privacy}","received_events_url":"https://api.github.com/users/pabloraissiguier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-25T14:50:32Z","updated_at":"2018-08-15T14:53:41Z","closed_at":"2018-08-15T14:53:41Z","author_association":"NONE","body":"Hi!\r\nHow could I implement role hierarchy? I have a symfony backend that has role hierarchy like:\r\nADMIN\r\n     USER\r\n\r\nADMIN role can do anything USER can and some more.\r\n\r\nBut when I try to make it work with vue-auth I have some trouble.\r\nFor example, in my routes file, a page that can be accessed by both type of users:\r\n\r\n`\r\nmeta: {auth: ['admin', 'user']},\r\n`\r\n\r\nIt redirects me to login, because my user only have 'admin' privileges (the backend assumes it contains user permissions) but no 'user'.\r\n\r\nShould I modify my backend, to retrieve all roles, regarding of the hierarchy or can I make it work with vue-auth?\r\n\r\n(sorry for my english.. please let me know if there's anything unclear :) )\r\n\r\nThanks!"}}
{"actor":{"display_login":"websanova"}}