Edgewall Software

Changes between Version 3 and Version 4 of TracDev/Proposals/AdvancedNotification/INotificationSubscriber


Ignore:
Timestamp:
Mar 22, 2017, 9:04:14 PM (3 years ago)
Author:
Ryan J Ollos
Comment:

Use new is_authenticated property of Request.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/Proposals/AdvancedNotification/INotificationSubscriber

    v3 v4  
    3030* `adverb`: Either the string `always` or `never`.
    3131
    32 Since more then one component can handle the same realms and categories, the priorities and adverbs are used to resolve conflicting subscriptions.
     32Since more than one component can handle the same realms and categories, the priorities and adverbs are used to resolve conflicting subscriptions.
    3333
    3434The implementation can use any means to determine if a user is interested in hearing about a given event.
     
    113113{{{
    114114    def get_subscription_preference_description(self, req):
    115         if req.session.authenticated and 'TICKET_ADMIN' in req.perm:
     115        if req.is_authenticated and 'TICKET_ADMIN' in req.perm:
    116116            return "notify me when an admin is needed"
    117117}}}