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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

  • Committer: David Coles
  • Date: 2010-02-13 00:59:09 UTC
  • Revision ID: coles.david@gmail.com-20100213005909-ecl1nd4g0criri21
docs: Don't show stubbed end user documentation. It looks bad, especially when some of it has lurked for years\!

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)) == 0):
 
68
            len(obj.get_permissions(self.root.user, config)) == 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)