def allows(self, user, action):

        # If this is kicking up a KeyError it's probably because you typoed!
        return getattr(self, '_allows_%s' % action)(user)
Check if the user has the permission on the document.
dataset/ETHPy150Open mozilla/kitsune/kitsune/wiki/permissions.py/DocumentPermissionMixin.allows