{"action":"opened","issue":{"url":"https://api.github.com/repos/ClinGen/clincoded/issues/25","labels_url":"https://api.github.com/repos/ClinGen/clincoded/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/ClinGen/clincoded/issues/25/comments","events_url":"https://api.github.com/repos/ClinGen/clincoded/issues/25/events","html_url":"https://github.com/ClinGen/clincoded/issues/25","id":88549158,"number":25,"title":"Allow Admin users to view/interact with the site as Community Curator, etc.","user":{"login":"kilodalton","id":1878194,"avatar_url":"https://avatars.githubusercontent.com/u/1878194?v=3","gravatar_id":"","url":"https://api.github.com/users/kilodalton","html_url":"https://github.com/kilodalton","followers_url":"https://api.github.com/users/kilodalton/followers","following_url":"https://api.github.com/users/kilodalton/following{/other_user}","gists_url":"https://api.github.com/users/kilodalton/gists{/gist_id}","starred_url":"https://api.github.com/users/kilodalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilodalton/subscriptions","organizations_url":"https://api.github.com/users/kilodalton/orgs","repos_url":"https://api.github.com/users/kilodalton/repos","events_url":"https://api.github.com/users/kilodalton/events{/privacy}","received_events_url":"https://api.github.com/users/kilodalton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ClinGen/clincoded/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ClinGen/clincoded/labels/new%20backend%20feature","name":"new backend feature","color":"f7c6c7"},{"url":"https://api.github.com/repos/ClinGen/clincoded/labels/new%20UI%20feature","name":"new UI feature","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-15T21:46:54Z","updated_at":"2015-06-15T21:46:54Z","closed_at":null,"body":"It is useful for Admins to be able to experience/test the site at a different different permission level without losing Admin status and without having to sign in as a different user. \r\n\r\nThis is an important tool to have because signing in as a different level is more challenging with the current Persona system as each person would have to log into the site with 4 separate validated email addresses to work with each of the 4 proposed permissions levels.  \r\n\r\nAdmins may have a dropdown accessible from all pages that allows them to see any page as Community Curator/ClinGen Curator/ClinGen Expert Curator/Admin to verify that permissions are set correctly and actions for that role are permitted/prohibited. This changed view would not actually change their status in db from an Admin to something else.\r\n\r\nOne implementation of this may be that Admin users have an extra field in their user record  that stores \"viewSiteAs\": \"[role type]\" that would persist the preference they have selected from the dropdown (useful for in-house curators that might have curatorial interactions that need to be preserved).  \r\n\r\nThis feature is primarily UI, but has backend implications because of roles-based interactions through Pyramid.\r\n"}}