{"issue":{"created_at":"2011-11-22T13:20:13Z","state":"open","updated_at":"2011-12-03T12:33:11Z","user":{"gravatar_id":"f9d5c5028b3152bf46e406cbe25347d1","id":452331,"url":"https://api.github.com/users/forste","avatar_url":"https://secure.gravatar.com/avatar/f9d5c5028b3152bf46e406cbe25347d1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"forste"},"comments":2,"body":"estimate: 2h\r\ndepending https://github.com/forste/MovieCatalog/issues/22\r\n","assignee":{"gravatar_id":"6e4ff3389b57794690566fb5494667e2","id":1142689,"url":"https://api.github.com/users/didiBlum","avatar_url":"https://secure.gravatar.com/avatar/6e4ff3389b57794690566fb5494667e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"didiBlum"},"id":2317771,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":27,"title":"11 Manage movies: Create Admin Entity or extend User Entity","html_url":"https://github.com/forste/MovieCatalog/issues/27","closed_at":null,"url":"https://api.github.com/repos/forste/MovieCatalog/issues/27","milestone":null},"action":"created","comment":{"created_at":"2011-12-03T12:33:11Z","updated_at":"2011-12-03T12:33:11Z","user":{"gravatar_id":"f9d5c5028b3152bf46e406cbe25347d1","id":452331,"url":"https://api.github.com/users/forste","avatar_url":"https://secure.gravatar.com/avatar/f9d5c5028b3152bf46e406cbe25347d1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"forste"},"body":"why not just have either an boolean attribute in the user table (in the\ndatabase) with isAdministrator true/false or (which would be nicer, but\nalso more difficult and currently not necessary) an extra Table for\nAdmins. If a user logins in with right password, you check if it is an\nadmin checking the attribute or if they are present in the extra Table\nrespectively.\n\ndon't get the idea with they code field?\n\nOn Sat, Dec 3, 2011 at 1:30 PM, Adi Blum <\nreply@reply.github.com\n> wrote:\n\n> i think that for the admin -\n>\n> We should think about that differently than a user, since we don't want\n> anyone to add themselves as an admin.\n> I will add a code field to the admin class, and only if the user has the\n> right code, he can login as an admin.\n>\n> sounds ok or difference suggestion?\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/forste/MovieCatalog/issues/27#issuecomment-3000386\n>","id":3000395,"url":"https://api.github.com/repos/forste/MovieCatalog/issues/comments/3000395"}}