~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

  • Committer: William Grant
  • Date: 2009-12-08 10:05:52 UTC
  • Revision ID: grantw@unimelb.edu.au-20091208100552-51qd6m3pl3h2owkk
Improve the diff/log breadcrumbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    def traversed_to_object(self, obj):
66
66
        """Check that the user has any permission at all over the object."""
67
67
        if (hasattr(obj, 'get_permissions') and
68
 
            len(obj.get_permissions(self.root.user, config)) == 0):
 
68
            len(obj.get_permissions(self.root.user)) == 0):
69
69
            # Indicate the forbidden object if this is an admin.
70
70
            if self.root.user and self.root.user.admin:
71
71
                raise Unauthorized('Unauthorized: %s' % obj)