{"action":"opened","issue":{"url":"https://api.github.com/repos/YABhq/Quarx/issues/36","repository_url":"https://api.github.com/repos/YABhq/Quarx","labels_url":"https://api.github.com/repos/YABhq/Quarx/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/YABhq/Quarx/issues/36/comments","events_url":"https://api.github.com/repos/YABhq/Quarx/issues/36/events","html_url":"https://github.com/YABhq/Quarx/issues/36","id":193854248,"number":36,"title":"Failed to create role","user":{"login":"chadpriddle","id":5265683,"avatar_url":"https://avatars.githubusercontent.com/u/5265683?v=3","gravatar_id":"","url":"https://api.github.com/users/chadpriddle","html_url":"https://github.com/chadpriddle","followers_url":"https://api.github.com/users/chadpriddle/followers","following_url":"https://api.github.com/users/chadpriddle/following{/other_user}","gists_url":"https://api.github.com/users/chadpriddle/gists{/gist_id}","starred_url":"https://api.github.com/users/chadpriddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadpriddle/subscriptions","organizations_url":"https://api.github.com/users/chadpriddle/orgs","repos_url":"https://api.github.com/users/chadpriddle/repos","events_url":"https://api.github.com/users/chadpriddle/events{/privacy}","received_events_url":"https://api.github.com/users/chadpriddle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T18:53:26Z","updated_at":"2016-12-06T18:53:26Z","closed_at":null,"body":"Trying to create a new role and get this error with the following inputs:\r\n\r\nName: editor\r\nLabel: Editor\r\n\r\nError:\r\nException in RoleService.php line 107:\r\nFailed to create role\r\n\r\nCode:\r\n    public function create($input)\r\n    {\r\n        try {\r\n            $input['permissions'] = implode(',', array_keys($input['permissions']));\r\n            return $this->model->create($input);\r\n        } catch (Exception $e) {\r\n            throw new Exception(\"Failed to create role\", 1);\r\n        }\r\n    }\r\n\r\nI'm logged in as the root admin"}}
{"actor":{"display_login":"chadpriddle"}}