Issue 1124: Use the request's context if none passed to has_permission
            and view_execution_permitted.