{"issue":{"created_at":"2011-11-28T17:47:10Z","state":"closed","updated_at":"2011-11-28T17:47:15Z","user":{"gravatar_id":"e80c46e273aeef40f4fee102a03522cf","id":676671,"url":"https://api.github.com/users/computino","avatar_url":"https://secure.gravatar.com/avatar/e80c46e273aeef40f4fee102a03522cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"computino"},"comments":3,"body":"Ich würde gerne in eigenen Berechtigungschecks auf die Daten in $this->BackendUser->alexf zugreifen (was ich nicht darf weil protected). Es gibt aber leider auch keine getter-Methode für den Zugriff. Als dirtyhack habe ich die getter-Methode ergänzt, was nicht updatesicher ist. \n\n```\npublic function +get($strKey)\n{\n  switch ($strKey)\n  {\n    case 'isAdmin':\n      return $this->arrData['admin'] ? true : false;\n      break;\n\n    // weitere getter wie im Original, dann diesen ergänzt:\n\n    case 'alexf':\n      return $this->alexf;\n      break;\n\n    default:\n      return parent::__get($strKey);\n      break;\n  }\n}\n```\n\nEinsatz: ich erstelle gerade ein bisschen bedienerfreudlichere Elemente, zum Beispiel auch nurnoch die Content-Elemente in die Auswahlliste, auf die der eingeloggte User Zugriff hat. Ansonsten kann er es auswählen und bekommt anschließend eine Fehlermeldung.\n\n--- _Originally created on September 5th, 2009, at 08:25pm (ID 990)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2371029,"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/backend"},{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/test/labels/Feature"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":990,"title":"Zugriff auf alexf ermöglichen","closed_at":"2011-11-28T17:47:15Z","html_url":"https://github.com/contao/test/issues/990","url":"https://api.github.com/repos/contao/test/issues/990","milestone":{"created_at":"2011-11-28T15:58:51Z","state":"closed","closed_issues":7,"due_on":null,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":14,"description":"TYPOlight 2.7.4 (maintenance release)","title":"2.7.4","url":"https://api.github.com/repos/contao/test/milestones/14","open_issues":0}},"action":"closed"}