{"issue":{"created_at":"2011-09-03T12:15:41Z","state":"closed","updated_at":"2011-12-02T08:04:28Z","comments":6,"user":{"gravatar_id":"d2aa5cc27e1111ed3e0fcb4418d22fe8","id":469996,"url":"https://api.github.com/users/Dzejkob","avatar_url":"https://secure.gravatar.com/avatar/d2aa5cc27e1111ed3e0fcb4418d22fe8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Dzejkob"},"body":"If I use standard `user.has_perm(\"perm\")` method, then it will return `True` only, if user has a global permission `\"perm\"`.\r\nAnd if `user.has_perm(\"perm\", obj)` is used, it'll teturn `True` if user have permission to access this particular object.\r\nBut it will return `False`, even if user has a global permission `\"perm\"`, which is quite unexpected for me, because I assume, that having global permission should give user access to all objects. Am I right?","assignee":null,"number":49,"id":1557796,"labels":[{"color":"e102d8","name":"invalid","url":"https://api.github.com/repos/lukaszb/django-guardian/labels/invalid"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"user.has_perm(\"perm\", obj) behaves unexpectedly","closed_at":"2011-09-10T20:23:05Z","html_url":"https://github.com/lukaszb/django-guardian/issues/49","url":"https://api.github.com/repos/lukaszb/django-guardian/issues/49","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T08:04:28Z","updated_at":"2011-12-02T08:04:28Z","user":{"gravatar_id":"8141671ea86026a05f407bf23be59f13","id":404463,"url":"https://api.github.com/users/coagulant","avatar_url":"https://secure.gravatar.com/avatar/8141671ea86026a05f407bf23be59f13?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"coagulant"},"body":"Looks like an unexpected behavior to me, could you please at least add this case to documentation, because it's not obvious without looking into the code.\r\n\r\nAs for me, this is a design flaw, resulting in extra check all over the code where I need to verify permission both globally and per-object.","id":2987382,"url":"https://api.github.com/repos/lukaszb/django-guardian/issues/comments/2987382"}}