pinax / symposion

a Django project for conference websites
BSD 3-Clause "New" or "Revised" License
299 stars 146 forks source link

Fix team permissions backend not pulling out manager_permissions #142

Open ghost opened 8 years ago

ghost commented 8 years ago

Something like request.user.has_perm('reviews.canmanage%s' % proposal.kind.section.slug)

Will aways return false as the backend does a lookup of team membership (member or manager) but only grabs the 'permissions' and not the 'manager_permissions' field