{"action":"created","issue":{"url":"https://api.github.com/repos/pculture/unisubs/issues/2542","repository_url":"https://api.github.com/repos/pculture/unisubs","labels_url":"https://api.github.com/repos/pculture/unisubs/issues/2542/labels{/name}","comments_url":"https://api.github.com/repos/pculture/unisubs/issues/2542/comments","events_url":"https://api.github.com/repos/pculture/unisubs/issues/2542/events","html_url":"https://github.com/pculture/unisubs/issues/2542","id":151640357,"number":2542,"title":"Issues with trying to make a staff/non-superuser user","user":{"login":"bendk","id":1012809,"avatar_url":"https://avatars.githubusercontent.com/u/1012809?v=3","gravatar_id":"","url":"https://api.github.com/users/bendk","html_url":"https://github.com/bendk","followers_url":"https://api.github.com/users/bendk/followers","following_url":"https://api.github.com/users/bendk/following{/other_user}","gists_url":"https://api.github.com/users/bendk/gists{/gist_id}","starred_url":"https://api.github.com/users/bendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendk/subscriptions","organizations_url":"https://api.github.com/users/bendk/orgs","repos_url":"https://api.github.com/users/bendk/repos","events_url":"https://api.github.com/users/bendk/events{/privacy}","received_events_url":"https://api.github.com/users/bendk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"syl22-00","id":875066,"avatar_url":"https://avatars.githubusercontent.com/u/875066?v=3","gravatar_id":"","url":"https://api.github.com/users/syl22-00","html_url":"https://github.com/syl22-00","followers_url":"https://api.github.com/users/syl22-00/followers","following_url":"https://api.github.com/users/syl22-00/following{/other_user}","gists_url":"https://api.github.com/users/syl22-00/gists{/gist_id}","starred_url":"https://api.github.com/users/syl22-00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syl22-00/subscriptions","organizations_url":"https://api.github.com/users/syl22-00/orgs","repos_url":"https://api.github.com/users/syl22-00/repos","events_url":"https://api.github.com/users/syl22-00/events{/privacy}","received_events_url":"https://api.github.com/users/syl22-00/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2016-04-28T13:24:59Z","updated_at":"2016-05-25T10:17:54Z","closed_at":null,"body":"We want to make some users staff, but not superusers.  This means they can access the django admin, but don't have full permissions (their permissions will be based on their group).\r\n\r\nThe main issue is that our is_anonymous property is messing with django's is_anonymous() method:\r\n\r\n```\r\n_user_has_module_perms /usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py:215\r\n-----------------------------------------------------------------------------------------------\r\nuser: <CustomUser: 139776442807824>\r\napp_label: 'teams'\r\n\r\n  \r\n  def _user_has_module_perms(user, app_label):\r\n*     anon = user.is_anonymous()\r\n      active = user.is_active\r\n      for backend in auth.get_backends():\r\n```\r\n\r\nWe should also take a quick look at various pages we have in the /staff area and decide if staff users should see them, or only superuser."},"comment":{"url":"https://api.github.com/repos/pculture/unisubs/issues/comments/221532125","html_url":"https://github.com/pculture/unisubs/issues/2542#issuecomment-221532125","issue_url":"https://api.github.com/repos/pculture/unisubs/issues/2542","id":221532125,"user":{"login":"PCF-Testing","id":288455,"avatar_url":"https://avatars.githubusercontent.com/u/288455?v=3","gravatar_id":"","url":"https://api.github.com/users/PCF-Testing","html_url":"https://github.com/PCF-Testing","followers_url":"https://api.github.com/users/PCF-Testing/followers","following_url":"https://api.github.com/users/PCF-Testing/following{/other_user}","gists_url":"https://api.github.com/users/PCF-Testing/gists{/gist_id}","starred_url":"https://api.github.com/users/PCF-Testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCF-Testing/subscriptions","organizations_url":"https://api.github.com/users/PCF-Testing/orgs","repos_url":"https://api.github.com/users/PCF-Testing/repos","events_url":"https://api.github.com/users/PCF-Testing/events{/privacy}","received_events_url":"https://api.github.com/users/PCF-Testing/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T10:17:54Z","updated_at":"2016-05-25T10:17:54Z","body":"Looks generally good to me now. Staff users may have some trouble when trying to lookup data that are out of bounds, such as team video ID - but I think we should merge and deploy this as is and change it later basedon the feedback."}}
{"actor":{"display_login":"PCF-Testing"}}