mirror of
https://github.com/jazzband/django-authority.git
synced 2026-05-09 08:04:43 +00:00
refs #1; Fixed path to register.
This commit is contained in:
parent
a2b1233afd
commit
9261bd5cef
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ from authority.permissions import BasePermission
|
|||
class FlatPagePermission(BasePermission):
|
||||
"""
|
||||
This class contains a bunch of checks:
|
||||
|
||||
|
||||
1. the default checks 'add_flatpage', 'browse_flatpage',
|
||||
'change_flatpage' and 'delete_flatpage'
|
||||
2. the custom checks:
|
||||
|
|
@ -49,4 +49,4 @@ class FlatPagePermission(BasePermission):
|
|||
return False
|
||||
top_secret.short_description=_('Is allowed to see top secret flatpages')
|
||||
|
||||
authority.register(FlatPage, FlatPagePermission)
|
||||
authority.sites.register(FlatPage, FlatPagePermission)
|
||||
|
|
|
|||
Loading…
Reference in a new issue