Changeset dfcab53


Ignore:
Timestamp:
Apr 2, 2010, 11:34:05 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
36d2293
Parents:
e02a4b2
git-author:
Alex Dehnert <adehnert@…> (04/02/10 11:34:05)
git-committer:
Alex Dehnert <adehnert@…> (04/02/10 11:34:05)
Message:

Use the finance_core.use_reporting permission

Location:
remit/finance_core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • remit/finance_core/models.py

    rdd2c3d9 rdfcab53  
    105105    def __unicode__(self,):
    106106        return u"%s [%s] (%s)" % (self.name, self.contact_address(), self.always, )
     107
     108    class Meta:
     109        permissions = (
     110            ('use_reporting', 'Can use basic reporting functionality',),
     111        )
    107112
    108113
  • remit/finance_core/views.py

    rea32cd9 rdfcab53  
    1313    return HttpResponse(root.dump_to_html())
    1414
     15@user_passes_test(lambda u: u.has_perm('finance_core.use_reporting'))
    1516def reporting(request):
    1617    compute_method = 'default'
Note: See TracChangeset for help on using the changeset viewer.