{"action":"created","issue":{"url":"https://api.github.com/repos/cross-solution/YAWIK/issues/206","repository_url":"https://api.github.com/repos/cross-solution/YAWIK","labels_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/206/comments","events_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/206/events","html_url":"https://github.com/cross-solution/YAWIK/issues/206","id":153036410,"number":206,"title":"A user with \"admin\" role should be able to manage users","user":{"login":"cbleek","id":858642,"avatar_url":"https://avatars.githubusercontent.com/u/858642?v=3","gravatar_id":"","url":"https://api.github.com/users/cbleek","html_url":"https://github.com/cbleek","followers_url":"https://api.github.com/users/cbleek/followers","following_url":"https://api.github.com/users/cbleek/following{/other_user}","gists_url":"https://api.github.com/users/cbleek/gists{/gist_id}","starred_url":"https://api.github.com/users/cbleek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbleek/subscriptions","organizations_url":"https://api.github.com/users/cbleek/orgs","repos_url":"https://api.github.com/users/cbleek/repos","events_url":"https://api.github.com/users/cbleek/events{/privacy}","received_events_url":"https://api.github.com/users/cbleek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cross-solution/YAWIK/labels/Upwork%20Task","name":"Upwork Task","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T15:09:04Z","updated_at":"2016-05-05T15:27:36Z","closed_at":null,"body":"If you login to the demo, you'll get a list of users http://yawik.org/demo/de/user/list\r\n![auswahl_942](https://cloud.githubusercontent.com/assets/858642/15017356/8e8d348c-1215-11e6-813e-023b72966220.png)\r\n\r\nThe List is generated via the UserController\r\n\r\nhttps://github.com/cross-solution/YAWIK/blob/develop/module/Auth/src/Auth/Controller/UsersController.php\r\n\r\nThe following Features are missing and should be implemented.\r\n\r\n1) detail views of a user. Users Details should be editable by the admin.\r\n\r\n2) User account should be able to deactivate.\r\n\r\nDetails follow.\r\n"},"comment":{"url":"https://api.github.com/repos/cross-solution/YAWIK/issues/comments/217185609","html_url":"https://github.com/cross-solution/YAWIK/issues/206#issuecomment-217185609","issue_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/206","id":217185609,"user":{"login":"cbleek","id":858642,"avatar_url":"https://avatars.githubusercontent.com/u/858642?v=3","gravatar_id":"","url":"https://api.github.com/users/cbleek","html_url":"https://github.com/cbleek","followers_url":"https://api.github.com/users/cbleek/followers","following_url":"https://api.github.com/users/cbleek/following{/other_user}","gists_url":"https://api.github.com/users/cbleek/gists{/gist_id}","starred_url":"https://api.github.com/users/cbleek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbleek/subscriptions","organizations_url":"https://api.github.com/users/cbleek/orgs","repos_url":"https://api.github.com/users/cbleek/repos","events_url":"https://api.github.com/users/cbleek/events{/privacy}","received_events_url":"https://api.github.com/users/cbleek/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T15:27:36Z","updated_at":"2016-05-05T15:27:36Z","body":"The list of Users should have an additional column with links to edit the Users Data. They can be simply added to the view \r\n\r\nhttps://github.com/cross-solution/YAWIK/blob/develop/module/Auth/view/auth/users/list.ajax.phtml\r\n\r\n![auswahl_951](https://cloud.githubusercontent.com/assets/858642/15046125/9159bd60-12de-11e6-8fe3-0edc00a81bbc.png)\r\n\r\nThe detail view of a User should look like . \r\n\r\n![auswahl_954](https://cloud.githubusercontent.com/assets/858642/15046217/ecde59a2-12de-11e6-856f-91f593ea4f55.png)\r\n\r\nIt should be possible to reuse the Code for the Formular\r\n\r\nhttps://github.com/cross-solution/YAWIK/blob/develop/module/Auth/src/Auth/Form/UserInfoContainer.php\r\n\r\nIn addition the admin should be able to deactivate a User. This means, we have to add an additional attribute to the user entity.\r\n\r\n```\r\n /**\r\n     * Status of the user\r\n     *\r\n     * @var Status\r\n     * @ODM\\EmbedOne(targetDocument=\"Status\")\r\n     * @ODM\\Index\r\n     */\r\n    protected $status;\r\n```\r\nThe status entity should look like our status entities for job and applications, but with the following states:\r\n\r\n```\r\nprotected static $orderMap = array(\r\n        self::ACTIVE => 50,\r\n        self::INACTIVE => 60,\r\n      );\r\n```\r\nhttps://github.com/cross-solution/YAWIK/blob/develop/module/Jobs/src/Jobs/Entity/Status.php\r\n\r\nThe findByLogin, findByProfileIdentifier, findByEmail and findByLoginOrEmail functions have to check for the Users status 'ACTIVE'. \r\n\r\nTo make it backward compatible we have to update all users and set status to \"ACTIVE\" where status does not exists.\r\n\r\nhttps://github.com/cross-solution/YAWIK/blob/develop/module/Auth/src/Auth/Repository/User.php\r\n\r\nOn the detail page of a User an additional form container should allow the admin to change the status of a user.\r\n\r\n\r\n@TiSiE , can you review please?"}}