mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Version 2.1.6. AKA: I am a doofus.
This commit is contained in:
parent
95aa99d8df
commit
fd89bca35f
|
@ -58,6 +58,12 @@ To run the tests.
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.1.6
|
||||||
|
|
||||||
|
**Date**: 23rd Nov 2012
|
||||||
|
|
||||||
|
* Bugfix: Unfix DjangoModelPermissions. (I am a doofus.)
|
||||||
|
|
||||||
## 2.1.5
|
## 2.1.5
|
||||||
|
|
||||||
**Date**: 23rd Nov 2012
|
**Date**: 23rd Nov 2012
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
>
|
>
|
||||||
> — Eric S. Raymond, [The Cathedral and the Bazaar][cite].
|
> — Eric S. Raymond, [The Cathedral and the Bazaar][cite].
|
||||||
|
|
||||||
|
## 2.1.6
|
||||||
|
|
||||||
|
**Date**: 23rd Nov 2012
|
||||||
|
|
||||||
|
* Bugfix: Unfix DjangoModelPermissions. (I am a doofus.)
|
||||||
|
|
||||||
## 2.1.5
|
## 2.1.5
|
||||||
|
|
||||||
**Date**: 23rd Nov 2012
|
**Date**: 23rd Nov 2012
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
__version__ = '2.1.5'
|
__version__ = '2.1.6'
|
||||||
|
|
||||||
VERSION = __version__ # synonym
|
VERSION = __version__ # synonym
|
||||||
|
|
|
@ -109,6 +109,6 @@ class DjangoModelPermissions(BasePermission):
|
||||||
|
|
||||||
if (request.user and
|
if (request.user and
|
||||||
request.user.is_authenticated() and
|
request.user.is_authenticated() and
|
||||||
request.user.has_perm(perms, obj)):
|
request.user.has_perms(perms, obj)):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user