forked from DGNum/gestioCOF
- remove is_buro from the database in the same way we did for is_cof - make a decent migration that *SHOULD* take into account is_cof for old databases. note, this has been tested only through unittests. - make unittests pass again accordin=gly fixing views. Note: we should make a method for filtering with specific group members, something like map(lambda x: x.profile.cof, filter… group…)
10 lines
321 B
Python
10 lines
321 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from django.contrib.auth.decorators import permission_required
|
|
|
|
cof_required = permission_required('cof.member')
|
|
cof_required_customdenied = permission_required('cof.member',
|
|
login_url="cof-denied")
|
|
|
|
buro_required = permission_required('cof.buro')
|