{"action":"opened","issue":{"url":"https://api.github.com/repos/veaceslav/TumorProfil/issues/5","repository_url":"https://api.github.com/repos/veaceslav/TumorProfil","labels_url":"https://api.github.com/repos/veaceslav/TumorProfil/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/veaceslav/TumorProfil/issues/5/comments","events_url":"https://api.github.com/repos/veaceslav/TumorProfil/issues/5/events","html_url":"https://github.com/veaceslav/TumorProfil/issues/5","id":156030377,"number":5,"title":"Groups with different read/write permissions / adaptions to UI","user":{"login":"mwiesweg","id":11816728,"avatar_url":"https://avatars.githubusercontent.com/u/11816728?v=3","gravatar_id":"","url":"https://api.github.com/users/mwiesweg","html_url":"https://github.com/mwiesweg","followers_url":"https://api.github.com/users/mwiesweg/followers","following_url":"https://api.github.com/users/mwiesweg/following{/other_user}","gists_url":"https://api.github.com/users/mwiesweg/gists{/gist_id}","starred_url":"https://api.github.com/users/mwiesweg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwiesweg/subscriptions","organizations_url":"https://api.github.com/users/mwiesweg/orgs","repos_url":"https://api.github.com/users/mwiesweg/repos","events_url":"https://api.github.com/users/mwiesweg/events{/privacy}","received_events_url":"https://api.github.com/users/mwiesweg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-20T19:04:56Z","updated_at":"2016-05-20T19:04:56Z","closed_at":null,"body":"Currently I see the following groups of users:\r\nRead only pathology data, no access to disease history\r\nRead only pathology data, read only disease history\r\nRead and write pathology data, read only history\r\nRead only pathology data, read and write history\r\nRead and write everything.\r\n(pathology data corresponds to the main window, editing happens through \"Befunde eingeben\" button or through the delegate in the table view. Disease history refers to the window which opens from the \"Krankheitsverlauf\" button)\r\n\r\n1) First question is where to define the role for a user: Either by adjusting read/write permissions for tables on the db level. Or by setting flags / roles in the tumorusers table.\r\nNormally, the first option is the natural one, but I am not sure if it is easy to detect the read/write permissions at run time, which would be needed because:\r\n\r\n2) It would be nice to reflect in the UI the available rights.\r\nno write permission on pathology data -> button is greyed, delegate does not offer editing\r\nno read permission on disease history -> button is greyed, window does not open\r\nno write permission on disease history -> widgets are not editable\r\n\r\n(At some places there may already be preliminary code in the UI which intends to support such modes)"}}
{"actor":{"display_login":"mwiesweg"}}