{"action":"closed","issue":{"url":"https://api.github.com/repos/firefly-iii/firefly-iii/issues/1638","repository_url":"https://api.github.com/repos/firefly-iii/firefly-iii","labels_url":"https://api.github.com/repos/firefly-iii/firefly-iii/issues/1638/labels{/name}","comments_url":"https://api.github.com/repos/firefly-iii/firefly-iii/issues/1638/comments","events_url":"https://api.github.com/repos/firefly-iii/firefly-iii/issues/1638/events","html_url":"https://github.com/firefly-iii/firefly-iii/issues/1638","id":354579943,"node_id":"MDU6SXNzdWUzNTQ1Nzk5NDM=","number":1638,"title":"Single user on Heroku doesn't receive admin","user":{"login":"hamuz","id":550499,"node_id":"MDQ6VXNlcjU1MDQ5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/550499?v=4","gravatar_id":"","url":"https://api.github.com/users/hamuz","html_url":"https://github.com/hamuz","followers_url":"https://api.github.com/users/hamuz/followers","following_url":"https://api.github.com/users/hamuz/following{/other_user}","gists_url":"https://api.github.com/users/hamuz/gists{/gist_id}","starred_url":"https://api.github.com/users/hamuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamuz/subscriptions","organizations_url":"https://api.github.com/users/hamuz/orgs","repos_url":"https://api.github.com/users/hamuz/repos","events_url":"https://api.github.com/users/hamuz/events{/privacy}","received_events_url":"https://api.github.com/users/hamuz/received_events","type":"User","site_admin":false},"labels":[{"id":110192326,"node_id":"MDU6TGFiZWwxMTAxOTIzMjY=","url":"https://api.github.com/repos/firefly-iii/firefly-iii/labels/bug","name":"bug","color":"d4c5f9","default":true},{"id":657922951,"node_id":"MDU6TGFiZWw2NTc5MjI5NTE=","url":"https://api.github.com/repos/firefly-iii/firefly-iii/labels/fixed","name":"fixed","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-08-28T05:48:29Z","updated_at":"2018-08-28T20:25:41Z","closed_at":"2018-08-28T20:25:41Z","author_association":"NONE","body":"**Bug description**\r\nI am running Firefly III version 4.7.5.3\r\nAnd although I'm single user, I don't get admin.\r\nI had to login with pgAdmin to the database to verify this (as API for /users require owner role)\r\nI was the single user on users table. And the table role_user was empty.\r\nI manually added row 1,1 (1st user id, 1st role [owner]), and everything worked.\r\n\r\n\r\n**Steps to reproduce**\r\n- Deploy on Heroku\r\n- Set on Heroku SITE_OWNER to my email\r\n- Set on Heroku TRUSTED_PROXIES to **\r\n- (Had to follow \"update guide\" because installation failed - different issue)\r\n- Register with SITE_OWNER email\r\n- Login\r\n- Try to add currency\r\n\r\n**Extra info**\r\nDebug information generated at 2018-08-28 05:47:28 UTC for Firefly III version **4.7.5.3**.\r\n\r\n| Variable | Content |\r\n| --- | --- |\r\n| FF version | 4.7.5.3 |\r\n| FF API version | 0.6 |\r\n| App environment | production |\r\n| App debug mode | false |\r\n| App cache driver | file |\r\n| App logging | debug, errorlog |\r\n| PHP version | 7.2.9 |\r\n| Display errors | Off |\r\n| Session start | 2018-08-01 00:00:00 |\r\n| Session end | 2018-08-31 23:59:59 |\r\n| Session first | 2018-01-01 00:00:00 |\r\n| Error reporting | ALL errors |\r\n| Host | Linux |\r\n| Interface | fpm-fcgi |\r\n| UserID | 1 |\r\n| Attempt at \"en\" | false |\r\n| Attempt at \"English\" | false |\r\n| Attempt at \"en_US.utf8\" | 'en_US.utf8' |\r\n| Attempt at \"en_US.UTF-8\" | 'en_US.UTF-8' |\r\n| DB drivers | mysql, pgsql |\r\n| Current driver | pgsql |\r\n| Using Sandstorm? | no |\r\n| Is Sandstorm (.env) | false |\r\n| Is Docker (.env) | false |\r\n| bunq uses sandbox | false |\r\n| Trusted proxies (.env) | ** |\r\n| User agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 |\r\n| Loaded extensions | Core, date, libxml, openssl, pcre, zlib, bz2, ctype, curl, dom, fileinfo, filter, hash, iconv, json, SPL, PDO, session, pdo_pgsql, pgsql, standard, posix, readline, Reflection, Phar, SimpleXML, sockets, mysqlnd, mysqli, tokenizer, xml, xmlreader, xmlwriter, zip, pdo_mysql, cgi-fcgi, bcmath, gd, intl, mbstring, Zend OPcache |\r\n| Installed packages | bacon/bacon-qr-code@1.0.3, bunq/sdk_php@dev-master, davejamesmiller/laravel-breadcrumbs@5.1.0, defuse/php-encryption@v2.2.1, doctrine/cache@v1.7.1, doctrine/dbal@v2.8.0, doctrine/event-manager@v1.0.0, doctrine/inflector@v1.3.0, doctrine/lexer@v1.0.1, dragonmantank/cron-expression@v2.2.0, egulias/email-validator@2.1.4, erusev/parsedown@1.7.1, fideloper/proxy@4.0.0, firebase/php-jwt@v5.0.0, guzzlehttp/guzzle@6.3.3, guzzlehttp/promises@v1.3.1, guzzlehttp/psr7@1.4.2, laravel/framework@v5.6.29, laravel/passport@v5.0.3, laravelcollective/html@v5.6.10, lcobucci/jwt@3.2.2, league/commonmark@0.17.5, league/csv@9.1.4, league/event@2.1.2, league/flysystem@1.0.45, league/fractal@0.17.0, league/oauth2-server@6.1.1, monolog/monolog@1.23.0, nesbot/carbon@1.25.0, paragonie/constant_time_encoding@v2.2.2, paragonie/random_compat@v2.0.17, phpseclib/phpseclib@2.0.11, pragmarx/google2fa@v3.0.1, pragmarx/google2fa-laravel@v0.2.0, psr/container@1.0.0, psr/http-message@1.0.1, psr/log@1.0.2, psr/simple-cache@1.0.1, ramsey/uuid@3.8.0, rcrowe/twigbridge@v0.9.6, swiftmailer/swiftmailer@v6.1.2, symfony/console@v4.1.2, symfony/css-selector@v4.1.2, symfony/debug@v4.1.2, symfony/event-dispatcher@v4.1.2, symfony/finder@v4.1.2, symfony/http-foundation@v4.1.2, symfony/http-kernel@v4.1.2, symfony/polyfill-ctype@v1.8.0, symfony/polyfill-mbstring@v1.8.0, symfony/polyfill-php56@v1.8.0, symfony/polyfill-php72@v1.8.0, symfony/polyfill-util@v1.8.0, symfony/process@v4.1.2, symfony/psr-http-message-bridge@v1.0.2, symfony/routing@v4.1.2, symfony/translation@v4.1.2, symfony/var-dumper@v4.1.2, tijsverkoyen/css-to-inline-styles@2.2.1, twig/twig@v1.35.4, vlucas/phpdotenv@v2.5.0, zendframework/zend-diactoros@1.8.3,  |"}}
{"actor":{"display_login":"hamuz"}}