~adeuring/launchpad/authentication-for-private-products-3

« back to all changes in this revision

Viewing changes to lib/lp/translations/browser/person.py

  • Committer: Abel Deuring
  • Date: 2012-10-12 14:53:10 UTC
  • mfrom: (16116.1.24 devel)
  • Revision ID: abel.deuring@canonical.com-20121012145310-m5y0i1i0gxefh451
trunk merged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    canonical_url,
41
41
    Link,
42
42
    )
 
43
from lp.services.webapp.authorization import check_permission
43
44
from lp.services.webapp.batching import BatchNavigator
44
45
from lp.services.webapp.interfaces import ILaunchBag
45
46
from lp.services.webapp.menu import NavigationMenu
210
211
        # will result in faster queries (cache effects).
211
212
        today = now.replace(minute=0, second=0, microsecond=0)
212
213
        self.history_horizon = today - timedelta(90, 0, 0)
 
214
        self.user_can_edit = check_permission('launchpad.Edit', self.context)
213
215
 
214
216
    @property
215
217
    def page_title(self):