I want to know too! On Monday, July 31, 2017 at 6:39:30 AM UTC-4, Pablo Camino Bueno wrote: > > Hello, > > I'm using a mixin in my dashboard views to handle a concrete user access > permission, customizing dispatch(). I'd like to remove the mixin, and add > this user-access-requirement to the permissions_map in the parent dashboard > view to affect all of them. > > So it'd be something like: > > class DashboardApplication(BaseDashboardApplication): > permissions_map = { > 'index': (['is_staff', 'my_custom_requirement'], > ['partner.dashboard_access', 'my_custom_requirement']), > > } > > > > My questions are, is this the correct approach? Where should I write this > function? > > Thanks > > > >
-- https://github.com/tangentlabs/django-oscar http://django-oscar.readthedocs.org/en/latest/ https://twitter.com/django_oscar --- You received this message because you are subscribed to the Google Groups "django-oscar" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/django-oscar. To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/8b491f53-cac4-4b8d-8665-ce6d631eb564%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.